// Path: app/src/main/java/com/ihunda/android/binauralbeat/Note.java
// public enum NoteK {A, AD, B, C, CD, D, DD, E, F, FD, G, GD}; 


import java.util.ArrayList;
import com.ihunda.android.binauralbeat.Note.NoteK;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.util.Log;
		want_shutdown = true;
	}
	
	public void setFade(float f) {
		fade = f;
		setVolume(volume);
		//Log.v(LOGVP, String.format("Fade %f", fade));
	}
	
	@Override
	public synchronized void run() {
		
		android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_AUDIO);
		
		while(!want_shutdown)
		{
			// Sleep if no voice loaded
			if (!playing) {
				try {
					sleep(500);
					//Log.v(LOGVP, "Sleeping");
				} catch (InterruptedException e) {
					// ignore
				}
				continue;
			}
			
			
			short[] samples = fillSamples();
			int totalWritten = 0;
// Path: app/src/main/java/com/ihunda/android/binauralbeat/Note.java
// public enum NoteK {A, AD, B, C, CD, D, DD, E, F, FD, G, GD}; 


// Path: app/src/main/java/com/ihunda/android/binauralbeat/VoicesPlayer.java
import java.util.ArrayList;
import com.ihunda.android.binauralbeat.Note.NoteK;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.util.Log;

		want_shutdown = true;
	}
	
	public void setFade(float f) {
		fade = f;
		setVolume(volume);
		//Log.v(LOGVP, String.format("Fade %f", fade));
	}
	
	@Override
	public synchronized void run() {
		
		android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_AUDIO);
		
		while(!want_shutdown)
		{
			// Sleep if no voice loaded
			if (!playing) {
				try {
					sleep(500);
					//Log.v(LOGVP, "Sleeping");
				} catch (InterruptedException e) {
					// ignore
				}
				continue;
			}
			
			
			short[] samples = fillSamples();
			int totalWritten = 0;
			int total = samples.length;