Search in sources :

Example 11 with IllegalStateException

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;
    }
}
Also used : IllegalStateException(java.lang.IllegalStateException)

Aggregations

IllegalStateException (java.lang.IllegalStateException)11 RemoteException (android.os.RemoteException)3 SparseArray (android.util.SparseArray)2 IOException (java.io.IOException)2 Path (java.nio.file.Path)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1