[ubuntu-za] Audio playback problem

Jan Schoeman oofpez at gmail.com
Tue Sep 28 14:52:42 BST 2010


Hey... looking for some advice. ^.^

I'm running an Acer Aspire 5735 (slightly irrelevant but I thought I'd
mention) with Karmic Koala.  All my audio works fine but I am having some
issues playing audio from a java application (which works on another system
- if you are interested in code its here: http://pastebin.com/dhFKyxrg).
When I run it gives me a exception...

*Audio Device Unavailable*

...which made me think that my audio device was being "held" by some other
program.
( I did some research and found
http://linux.dsplabs.com.au/lsof-grep-snd-how-to-free-a-linux-sound-device-p25/)

I ran the command:

lsof |grep snd


which gave me

pulseaudi 2190        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20
pulseaudi 2190        jan  mem       CHR      116,5                4556
/dev/snd/pcmC0D0p
pulseaudi 2190        jan   22u      CHR      116,9      0t0       4570
/dev/snd/controlC0
pulseaudi 2190        jan   29u      CHR      116,9      0t0       4570
/dev/snd/controlC0
pulseaudi 2190        jan   37u      CHR      116,9      0t0       4570
/dev/snd/controlC0
pulseaudi 2190        jan   39u      CHR      116,5      0t0       4556
/dev/snd/pcmC0D0p
gconf-hel 2194        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20
gnome-set 2224        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20
gnome-vol 2324        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20
firefox-b 2557        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20
plugin-co 2896        jan  mem       REG        8,6   420372    4254042
/usr/lib/libsndfile.so.1.0.20

now it seemed to me pulseaudio was handling my sound, and i'm pretty sure it
should, so I reached a dead end here.

Any clue how to get the java program (which I am running from eclipse) to
play audio succesfully?

Let me know if you have any ideas on this.

Thanks
Jan Schoeman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-za/attachments/20100928/7519f4bb/attachment.htm 


More information about the ubuntu-za mailing list