Code example for AudioTrack

Methods: flushstop

0
			track.play();
	} 
 
	static void audioStop() { 
		if (track != null) {
			track.stop();
			track.flush();
		} 
	} 
 
	static void audioPause() { 
		if (track != null)
			track.pause();
	} 
 
	static void audioPlay(byte[] data, int size) {
		if (track != null)
			track.write(data, 0, size);
	} 
}