Hallo alle,
I am trying to record audio and this is what i am doing.
------------------------------------
Player p = Manager.createPlayer("capture://audio");
p.realize();
RecordControl rc = (RecordControl)p.getControl("RecordControl");
rc.setRecordStream(boutA);
rc.startRecord();
p.start();
form1.append("recording..");
Thread.currentThread().sleep(5000);
rc.commit();
p.close();
------------------------------------
the bove code is working fine when i try and run it in netbeans 5.5 using J2ME wireless toolkit 2.2 as a Emulator platform and again work nicely when installed and executed in Nokia E-65. but when i try to do the same in "Sun Java(TM) Wireless toolkit 2.5.1"(i need to do it as i have to implemet SIP). it gives me error in the emulator saying "java.io.IOException: Couldn't open audio input".

Reply With Quote


