Martin Cochran

Greenhorn
+ Follow
since Jul 17, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Martin Cochran

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.
21 years ago
As for your workaround with the serial ports... I don't think that's a workaround. I think that's the only way you can do it because to linux, everything is a file and so normal read/write operations apply the same to a file whether or not there's actually a physical device behind the file.
My suggestion for the parallel ports would be to do the same (play around with /dev/par*).
21 years ago