03-20-2011, 08:20 AM
Join Date: Mar 2011
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | X-GSM/PCM CODEC's on simulator
Please Login to Remove!
I using blackberry eclipse plug-in with preinstalled simulator for BB OS 5.0
After capturing: _player = Manager.createPlayer("capture://audio?encoding=audio/basic");
I trying to play the captured byte array but on string:
_player = Manager. createPlayer( new ByteArrayInputStream(_data), "audio/basic");
I receiving following exception: javax.microedition.media.MediaException: Not a snd file.
(when I using "x-gsm" instead "basic" it just playing nothing).
The question is how to play on simulator x-gsm or pcm byte streams and how to
upgrade simulator with this CODEC's?