Code example for AudioTrack

Methods: getPlaybackHeadPosition

0
		} 
	} 
 
	public static boolean isPlaying() 
	{ 
		try{return audiotrk.getPlaybackHeadPosition() < (generatedSnd.length);}catch(Exception e){return false;}
	} 
 
	static int minbufsize;
	static int length;
 
	private static void playSound(){ 
		active = true;
		while(active)
		{ 
			try {Thread.sleep(Long.MAX_VALUE);} catch (InterruptedException e) {
				while (playque.isEmpty() == false)
				{ 
					if (audiotrk != null)
					{ 
						if (generatedSnd != null)