public boolean isInitialized() {
        return mAudioTrack != null && mAudioTrack.getState() == AudioTrack.STATE_INITIALIZED;
    }
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