Code example for AudioTrack

Methods: write

0
			track.pause();
	} 
 
	static void audioPlay(byte[] data, int size) {
		if (track != null)
			track.write(data, 0, size);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java