• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

JMF - decode audio stream : which format ?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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 ?

Thanks for reading me,
Julien
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic