use of java.lang.IllegalStateException in project XobotOS by xamarin.
the class AudioTrack method stop.
/**
* Stops playing the audio data.
*
* @throws IllegalStateException
*/
public void stop() throws IllegalStateException {
if (mState != STATE_INITIALIZED) {
throw (new IllegalStateException("stop() called on uninitialized AudioTrack."));
}
// stop playing
synchronized (mPlayStateLock) {
native_stop();
mPlayState = PLAYSTATE_STOPPED;
}
}
Aggregations