Code example for AudioTrack

Methods: setStereoVolume

0
		final float min = AudioTrack.getMinVolume();
		final float max = AudioTrack.getMaxVolume();
		volume = min + (max - min) * vol / 100;
 
		if (track != null)
			track.setStereoVolume(volume, volume);
	} 
 
	static void audioDestroy() { 
		if (track != null) {
			track.stop();
			track = null;
		} 
	} 
 
	static void audioStart() { 
		if (track != null)
			track.play();
	} 
 
	static void audioStop() {