Eclipse, Java, Midi, Linux(Debian) - sequencer issue -
here's problem:
exception in thread "main" org.jfugue.jfugueexception: midi system cannot instantiate sequencer. although error reported jfugue, problem not jfugue itself. find resources using midi on specific system. exception message midisystem.getsequencer() is: null
here's whole code:
import org.jfugue.*; import javax.sound.midi.*; public class helloworld { public static void main(string[] args){ mididevice.info[] devices = midisystem.getmidideviceinfo(); if (devices.length == 0) { system.out.println("no midi devices found"); } else { (mididevice.info dev : devices) { system.out.println(dev.getname()); } } player player = new player(); player.play("a b c"); system.exit(0); } }
and output:
real time sequencer exception in thread "main" org.jfugue.jfugueexception: midi system cannot instantiate sequencer. although error reported jfugue, problem not jfugue itself. find resources using midi on specific system. exception message midisystem.getsequencer() is: null @ org.jfugue.player.<init>(player.java:82) @ org.jfugue.player.<init>(player.java:65) @ helloworld.main(helloworld.java:20)
i'm running eclipse package apt-get - 'sun-java6-jdk' unpacks jvm directory. use jre1.5 compiling , 1.6 running. use 1.5 compiling because version compatible jfugue4.0.
this might issue though - alsa 'aplay' command not 'play' files. can use vlc media player or timidity command line, , sound. also, speaker-test works. why wouldn't command line 'aplay' work well? symptom of java issue?
edit: aplay work. sorry, did retest.
edit: here result of " cat /dev/sndstat/ "
sound driver:3.8.1a-980706 (alsa v1.0.24 emulation code) kernel: linux sean-debian 3.2.0-4-amd64 #1 smp debian 3.2.68-1+deb7u2 x86_64 config options: 0
installed drivers: type 10: alsa emulation
card config: hda ati sb @ 0xd0400000 irq 16 hda ati hdmi @ 0xd0310000 irq 19
audio devices: not enabled in config
synth devices: not enabled in config
midi devices: not enabled in config
timers: 31: system timer
mixers: not enabled in config
thanks - has been bugging me.
Comments
Post a Comment