This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes SourceDataLine not generating STOP event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "SourceDataLine not generating STOP event" Watch "SourceDataLine not generating STOP event" New topic

SourceDataLine not generating STOP event

Martin Cochran

Joined: Jul 17, 2002
Posts: 2
I'm trying to get this audio streaming client/server app working using the java sound API. The audio is supposed to sync up with some sort of visual, so I'm concerned that if there is some sort of network delay that the sound with be off by the delay for the rest of the life of the program.
Anyways, SourceDataLine is supposed to generate a STOP event if the buffer becomes empty, but it's not (I've checked using the available() method).
Any thoughts? Ideas? I would like to either find out why it's not generating the stop event (like the API specification says it should) or find a fix.
Consider Paul's rocket mass heater.
subject: SourceDataLine not generating STOP event
Similar Threads
Worst Metronome in the world. Delay in playing Audio.
Placing motion and sound in Java
java.sound ?
Java Sound API problems
Play a .wav file