[DEV] add basic airtaudio

This commit is contained in:
Edouard DUPIN 2014-03-13 22:31:30 +01:00
parent 1b94a81174
commit 9f4bd697e8
3 changed files with 5 additions and 9 deletions

2
external/airtaudio vendored

@ -1 +1 @@
Subproject commit fca89ede0305e0ce30185f7c2d2f50601fed8bf2 Subproject commit 56836c78767759c202ca8cf79e13e05fb0a7ae7a

View File

@ -136,13 +136,11 @@ public abstract class EwolActivity extends Activity implements EwolCallback, Ewo
@Override protected void onStart() { @Override protected void onStart() {
super.onStart(); super.onStart();
// call C
EWOL.onStart(); EWOL.onStart();
} }
@Override protected void onRestart() { @Override protected void onRestart() {
super.onRestart(); super.onRestart();
// call C
EWOL.onReStart(); EWOL.onReStart();
} }
@ -155,7 +153,6 @@ public abstract class EwolActivity extends Activity implements EwolCallback, Ewo
mAudioThread.start(); mAudioThread.start();
} }
*/ */
// call C
EWOL.onResume(); EWOL.onResume();
} }
@ -172,7 +169,6 @@ public abstract class EwolActivity extends Activity implements EwolCallback, Ewo
} catch(InterruptedException e) { } } catch(InterruptedException e) { }
} }
*/ */
// call C
EWOL.onPause(); EWOL.onPause();
} }

View File

@ -23,8 +23,8 @@ import org.ewol.Ewol;
public class EwolAudioTask implements Runnable, EwolConstants public class EwolAudioTask implements Runnable, EwolConstants
{ {
public static final int SAMPLE_FREQ_44100 = 44100; public static final int SAMPLE_FREQ_44100 = 44100;
private boolean m_stopAudioThreads = false; private boolean m_stopAudioThreads = false;
private AudioTrack m_musicTrack = null; private AudioTrack m_musicTrack = null;
private Ewol EWOL; private Ewol EWOL;
// constructor : // constructor :
@ -82,5 +82,5 @@ public class EwolAudioTask implements Runnable, EwolConstants
return; return;
} }
m_stopAudioThreads=true; m_stopAudioThreads=true;
} }
}/* no ; here !!! */ }