Code example for AudioTrack

Methods: releasestop

0
	 
	public int deinitAudio() 
	{ 
		if( mAudio != null )
		{ 
			mAudio.stop();
			mAudio.release();
			mAudio = null;
		} 
		mAudioBuffer = null;
		return 1; 
	} 
	 
	public int initAudioThread() 
	{ 
		// Make audio thread priority higher so audio thread won't get underrun 
		Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
		return 1; 
	} 
	 
	private native int nativeAudioInitJavaCallbacks();