Sanyo
Audio Recording on MM 8300
I'm recording the audio on MM 8300, while committing(rc.commit() method below), it gives IOException.
But the phone supports audio capture and the media version is 1.1.
My code is given below...
Player p = Manager.createPlayer(");
p.realize();
RecordControl rc = (RecordControl) p.getControl(");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
rc.setRecordStream(baos);
rc.startRecord(); p.start();
Thread.currentThread().sleep(30000);
// Record for 30 secs
rc.commit();
p.stop();
baos.close();
p.close();