I am working on a audio recording application. I have referred to the following example for the same:
// Create a DataSource that captures live audio.
Player p = Manager.createPlayer("capture://audio");
// Get the RecordControl, set the record location, and
// start the Player and record for 5 seconds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
After recording, i find that the file is getting saved as "audio.amr" (0.0 Kb), but if i look in file Details under File Format it says "not available".
Thus when i try to play the recorded file it says format not supported. But i have other .amr files that are working fine.
Can someone please help me here.