dcsimg
Problems capturing audio under Linux
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Luis_Rodriguez
Posted On:   Thursday, June 6, 2002 10:00 AM

Hello. I have developed an application that captures audio using th Java Audio API of JFM. The problem is when I start capturing audio under Linux (all the audio devices are ewll configurated), the JVM returns the following error: java.lang.IllegalArgumentException : Illegal request to write non integral numbre of frames (13107 bytes) The piece of code that causes the error is : while(!stop) { numBytesRead = inputLine.read(data,0, data.length); bufferoutput.write(data,0, numBytesRead); } where inputLine is a TargetDataLine. under Windows this runs OK. Anyone know why not under Linux?    More>>

Hello. I have developed an application that captures audio using th
Java Audio API of JFM. The problem is when I start capturing audio
under Linux (all the audio devices are ewll configurated),
the JVM returns the following error:

java.lang.IllegalArgumentException : Illegal request to write
non integral numbre of frames (13107 bytes)

The piece of code that causes the error is :

while(!stop)
{
numBytesRead = inputLine.read(data,0, data.length);
bufferoutput.write(data,0, numBytesRead);

}


where inputLine is a TargetDataLine.


under Windows this runs OK. Anyone know why not under Linux?

   <<Less
About | Sitemap | Contact