Code example for SoundPool

Methods: pause

0
        mSoundPool.stop(stream);
        removeLoopingStream(stream);
    } 
     
    public final void pause(int stream) {
        mSoundPool.pause(stream);
    } 
     
    public final void resume(int stream) {
       mSoundPool.resume(stream);
    } 
     
    public final void stopAll() { 
    	final int count = mLoopingStreams.length;
    	for (int x = count - 1; x >= 0; x--) {
    		if (mLoopingStreams[x] >= 0) {
    			stop(mLoopingStreams[x]);
    		} 
    	} 
    }