• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

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
 
What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic