in src/android/AudioPlayer.java [136:153]
public void destroy() {
// Stop any play or record
if (this.player != null) {
if ((this.state == STATE.MEDIA_RUNNING) || (this.state == STATE.MEDIA_PAUSED)) {
this.player.stop();
this.setState(STATE.MEDIA_STOPPED);
}
this.player.release();
this.player = null;
}
if (this.recorder != null) {
if (this.state != STATE.MEDIA_STOPPED) {
this.stopRecording(true);
}
this.recorder.release();
this.recorder = null;
}
}