I'm writing an application which listens to an audio stream on a multicast socket. The application that sends the audio is written in C++, and I don't manage to find the correct parameters for my SourceStream audio format (returned by the getFormat() of my source stream class), so as the player can reproduce the sound.
Have look at the C++ code that encodes the audio :
Since I didn't manage to match these parameters with the AudioFormat constructor arguments, I tried several formats constructors, such as
trying to add, change and remove values... but in vain. All I get is an ununderstandable noise, running on OS X (JVM 1.5.0_02-56) with cross-platform JMF.
Then from this page : http://java.sun.com/products/java-media/jmf/2.1.1/formats.html I wondered if the format was not a "Windows only" ACM format, and therefore tried to run my code on Windows with the native JMF 2.1.1 (JVM 1.4.2_10). Unfortunately, it got worse since the JVM crashes when it comes to decoding the audio... (Exception code=0xc0000005... Java frames : com.ibm.media.codec.audio.gsm.NativeDecoder.decodeNative([BI [BII)V+0)
Anyone knows why the JVM crashes on windows ? Or has an idea of what format parameters I should use to be able to play the audio ?