dcsimg
Please Help - Java Sound on Linux - Sound is not produced while playing a sound file using java.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Peter_Rajesh
Posted On:   Friday, August 16, 2002 12:05 AM

Couldn't hear sound while playing sound file in Nessy. Below exception is thrown. Please let me know workaround for this. javax.sound.sampled.LineUnavailableException: Audio Device Unavailable at com.sun.media.sound.HeadspaceMixer.nResume(Native Method) at com.sun.media.sound.HeadspaceMixer.implOpen(HeadspaceMixer.java:393) at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:87) at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:275) at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:291) at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:337) at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:374) at com.sun.media.sound.AbstractDataLi   More>>

Couldn't hear sound while playing sound file in Nessy. Below exception is thrown. Please let me know workaround for this.

javax.sound.sampled.LineUnavailableException: Audio Device Unavailable
at com.sun.media.sound.HeadspaceMixer.nResume(Native Method)
at com.sun.media.sound.HeadspaceMixer.implOpen(HeadspaceMixer.java:393)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:87)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:275)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:291)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:337)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:374)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:83)
at gapf.utils.AudioPlayer.run(AudioPlayer.java:236)
at java.lang.Thread.run(Thread.java:484)

[AudioPlayer] line: com.sun.media.sound.MixerSourceLine@51e765
Unable to open the line: javax.sound.sampled.LineUnavailableException: Audio Device Unavailable

   <<Less

Re: Please Help - Java Sound on Linux - Sound is not produced while playing a sound file using java.

Posted By:   michael_dean  
Posted On:   Wednesday, August 21, 2002 10:47 PM

It looks like some other program is "using" your audio device (i.e. has the device open). HTH.

About | Sitemap | Contact