Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMF - decode audio stream : which format ?

Julien Roubieu
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 : 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 :[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 ?

Thanks for reading me,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic