hi guys,
i'm trying to build a prototype...to record and save the audio sound. but i've got a problem...
my code:
try {
// Create a DataSource that captures live audio.
Player p = Manager.createPlayer("capture://audio");
p.realize();
// Get the RecordControl, set the record location, and
// start the Player and record for 5 seconds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
rc.setRecordLocation("file:/temp/record.wav");
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
p.stop();
rc.stopRecord();
rc.commit();
} catch (IOException ioe) {
} catch (MediaException me) {
Alert popup = new Alert("", me.getMessage(), null, AlertType.ERROR);
popup.setTimeout(Alert.FOREVER);
Display.getDisplay(this).setCurrent(popup);
} catch (InterruptedException e) {
}
the problem is setRecordLocation is giving me an exception...wat is the real path of nokia 6600 that i can enter...
thx a mil.

Reply With Quote

