MIDP: Sony Ericsson JP7 phones won't write audio to a stream

30/09/07 Permalink

This one's a problem, seeing as early SE phones could do audio easily. Here's some example code - the data length is 0 for the K800i but W300i it captures the data OK.

Player p = Manager.createPlayer("capture://audio?encoding=amr"); p.realize(); RecordControl rc = (RecordControl)p.getControl("RecordControl"); p.start(); os = new ByteArrayOutputStream(); rc.setRecordStream(os); rc.startRecord(); Thread.sleep(5000); rc.commit(); byte [] data = os.toByteArray(); //data.length = 0
Share It: Digg | del.icio.us | Furl | reddit | Facebook | Yahoo! | Send to Phone

mobile-utopia.com | Feedback