Loading...
Logo
Processing Forum

JavaSound Minim Errors

in Core Library Questions  •  9 months ago  
Hi All,

I'm recording some sound in a Processing sketch.  It seems to be working fine but I get the errors below.  Any idea what is going on?  My sketch is working but I don't like seeing these errors.  I'm running Fedora 17 Linux and Processing from processing-2.0b7-linux64.tgz

==== JavaSound Minim Error ====
==== Couldn't open the line: line with format PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.

==== JavaSound Minim Error ====
==== Unable to return a SourceDataLine: unsupported format - PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian

Replies(4)

It means you are trying to read a sound file whose format (they are numerous!) isn't supported by Minim. You should try and use another file or use a software like ffmpeg to re-encode it to a format compatible with Minim.

The strange thing is that this sketch worked fine (with no errors) on the same computer before I upgraded from Fedora 16 to 17...
Maybe it is an issue with the installed codecs.
I'm getting these errors even with the RecordAudioInput example from the minim library.  The sketch spits out these errors when I save the file.  Again, recording and saving both work fine, sound fine, but the errors persist.  This seems like a bug to me... I guess I could dig through the minim code to see what generates this error...