compilationerror

This commit is contained in:
Edouard Dupin 2012-06-29 18:12:07 +02:00
parent 99d026f367
commit efc628af0f

View File

@ -148,9 +148,9 @@ public class __PROJECT_NAME__ extends Activity {
super.onResume(); super.onResume();
mGLView.onResume(); mGLView.onResume();
mAudioThread = new Thread(mStreams); mAudioThread = new Thread(mStreams);
if (mAudioThread != NULL) { //if (mAudioThread != NULL) {
mAudioThread.start(); mAudioThread.start();
} //}
// call C // call C
interfaceJNI.ActivityOnResume(); interfaceJNI.ActivityOnResume();
} }
@ -159,12 +159,12 @@ public class __PROJECT_NAME__ extends Activity {
{ {
super.onPause(); super.onPause();
mGLView.onPause(); mGLView.onPause();
if (mAudioThread != NULL) { //if (mAudioThread != NULL) {
// request audio stop // request audio stop
mAudioThread.Stop(); //mAudioThread.Stop();
// wait the thread ended ... // wait the thread ended ...
mAudioThread.join(); //mAudioThread.join();
} //}
// call C // call C
interfaceJNI.ActivityOnPause(); interfaceJNI.ActivityOnPause();
} }