-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 20 November 2002 19:29, Mark Swanson wrote: > I'm trying to play sounds/midi from Java. This works find if I kill arts. > If I enable arts Java just hangs trying to open the audio device. > > I did get this working once where java was playing MIDI and arts was > running. But, I did something and now this no longer works. Any suggestions > would be greatly appreciated. > > Btw, I read from the java-sound mailing list that Java 1.4.2 will work very > well with alsa. Perhaps this means they will support arts too? > > snd-pcm-oss 38340 0 (autoclean) > snd-mixer-oss 12728 0 (autoclean) [snd-pcm-oss] > snd-ens1371 11244 0 (autoclean) > snd-rawmidi 13952 0 (autoclean) [snd-ens1371] > snd-seq-device 4284 0 (autoclean) [snd-rawmidi] > snd-pcm 59200 0 (autoclean) [snd-pcm-oss snd-ens1371] > snd-timer 11016 0 (autoclean) [snd-pcm] > snd-ac97-codec 29220 0 (autoclean) [snd-ens1371] > snd 26700 1 (autoclean) [snd-pcm-oss snd-mixer-oss > snd-ens1371 snd-rawmidi snd-seq-device snd-pcm snd-timer snd-ac97-codec]
Hi, afaik those two have nothing in common besides arts being able to use alsa for sound output. arts is basically a multiplexer that allows to mix vaious sound sources together. This combined output is then passed to alsa in your case. I think that also works for midi, I just didn't have a supported soundcard yet to test ;) So if arts is running, both, the midi interface and the dsp interface are in use. Your JAVA application cannot access the devices and appearantly waits for them. What might have happened when it worked before is that arts was suspended. You can define a timeout in KDE's soundserver configuration. After the timeout has passed without sound activity, arts suspends itself and releases the devices. It wakes up and tries to reconnect once there is a client that want's to play a sound. So if there was no sound for a while, the devices are free again and your JAVA app can grab them. Maybe that's what happened. I'm not sure though. I'm not aware of any development for a JAVA arts client though i'd love to be corrected here ;) Hope that answered your questions a little even though it's not a real solution. Richard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE929uHWQvEMJfcXlQRAhNuAKCd9T+Ayv/GOIrlnF7sxUgL6uidwACeOH+Y vTq9A6e/vlOKSU93vHNuy/A= =kIYZ -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: Battle your brains against the best in the Thawte Crypto Challenge. Be the first to crack the code - register now: http://www.gothawte.com/rd521.html _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user