Code example for AudioTrack

0
	private AudioTrack audio = new AudioTrack(
			AudioManager.STREAM_MUSIC, 44100,
			AudioFormat.CHANNEL_CONFIGURATION_STEREO,
			AudioFormat.ENCODING_PCM_16BIT,
			minSize < 4096 ? 4096 : minSize,
			AudioTrack.MODE_STREAM);
	protected boolean paused;
	private Thread playThread;
	 
	protected ModPlayer() { 
	      // empty 
	} 
	 
	public static ModPlayer getInstance() { 
		if(instance == null) {
			instance = new ModPlayer();
			instance.xmp.init();
			instance.paused = false;
		} 
		return instance;
	}