Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Playing 16-bit stereo files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Playing 16-bit stereo files" Watch "Playing 16-bit stereo files" New topic
Author

Playing 16-bit stereo files

Jyothsna Sri Y
Ranch Hand

Joined: Sep 25, 2003
Posts: 35
Hi,
Can someone tell me how to play 16-bit stereo audio files using Java Media Framework. It is said that JDK1.2 supports 16-bit stereo sound format but when I try to play it is giving Exceptions:
Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
Failed to realize: com.sun.media.PlaybackEngine@a4488
Error: Unable to realize com.sun.media.PlaybackEngine@a4488
Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
Failed to realize: com.sun.media.PlaybackEngine@1d32e45
Error: Unable to realize com.sun.media.PlaybackEngine@1d32e45.
This is on linux. The files are of mp3 format. I've tried with wav file format too. These files are playing fine on Windows.
Can someone help out asap.....
Thanks
Jyothsna.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Playing 16-bit stereo files
 
Similar Threads
JMF and mp3 plugin
Using JMF in Eclipse 3.0 -- A "failed to realize" error
Deploying JMF with out installation
JMF cut.java
JMF Problems with cut.java sample