Code example for AudioTrack

Methods: pause

0
 
	public void pauseGame() 
	{ 
		paused = true;
		if (audioTrack != null)
			audioTrack.pause();
		pauseEngine(); 
	} 
 
	public void resumeGame() 
	{ 
		if (audioTrack != null)
			audioTrack.play();
		resumeEngine(); 
		paused = false;
	} 
	 
	public void moveMouse(float relativeX, float relativeY, float x, float y)
	{ 
		mouseMoveX = (short)x;
		mouseMoveY = (short)y;