public void pause(boolean flush) {
        //Log.d(TAG, "pause(" + flush + ")");
        if(isInitialized()) {
            mAudioThread.setPaused(true);
            mAudioTrack.pause();

            if(flush) {
                flush();
            }
        } else {
            throw new IllegalStateException();
        }
    }
Can be used to set an audio session ID before calling {@link #init(android.media.MediaFormat)}.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/AudioPlayback.java