Record audio in pcm format
Please Login to Remove!
I wants to record a audio file in pcm format. It is recording , but the recorded file is not playing. Displaying error "The media being played is off an unsupported format".
This is my code:
m_cObjPlayer = Manager.createPlayer("capture://audio?encoding=pcm");
m_cObjPlayer.realize();
m_cObjRecordControl = (RecordControl)m_cObjPlayer.getControl("RecordCont rol");
m_cObjRecordControl.setRecordLocation("file:///SDCard/blackberry/music/Recorder.wav");
m_cObjRecordControl.startRecord();
m_cObjPlayer.start();
Can anybody help me. Why it is not working. Also i have checked this recorded file. It is not a .wav file, it doesn't have wav header.
Last edited by Preetimandap; 01-09-2008 at 08:10 AM..
|