Code example for AudioTrack

Methods: pause

0
    @CalledByNative 
    private void flush() { 
        mMediaCodec.flush();
        mFlushed = true;
        if (mAudioTrack != null) {
            mAudioTrack.flush();
        } 
    } 
 
    @CalledByNative 
    private void stop() { 
        mMediaCodec.stop();
        if (mAudioTrack != null) {
            mAudioTrack.pause();
        } 
    } 
 
    @CalledByNative 
    private int getOutputHeight() { 
        return mMediaCodec.getOutputFormat().getInteger(MediaFormat.KEY_HEIGHT);
    }