Code example for AudioTrack

Methods: pause

0
 
    public int pauseAudioPlayback() 
    { 
        if( mAudio != null )
        { 
            mAudio.pause();
            return 1; 
        } 
        return 0; 
    } 
 
    public int resumeAudioPlayback() 
    { 
        if( mAudio != null )
        { 
            mAudio.play();
            return 1; 
        } 
        return 0; 
    }