|
|
@ -230,12 +230,14 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt |
|
|
|
view.onResume(); |
|
|
|
view.onResume(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//resume the audio
|
|
|
|
if (app != null) { |
|
|
|
AudioRenderer result = app.getAudioRenderer(); |
|
|
|
//resume the audio
|
|
|
|
if (result != null) { |
|
|
|
AudioRenderer result = app.getAudioRenderer(); |
|
|
|
if (result instanceof AndroidAudioRenderer) { |
|
|
|
if (result != null) { |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
if (result instanceof AndroidAudioRenderer) { |
|
|
|
renderer.resumeAll(); |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
|
|
|
|
renderer.resumeAll(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -250,18 +252,20 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt |
|
|
|
view.onPause(); |
|
|
|
view.onPause(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//pause the audio
|
|
|
|
if (app != null) { |
|
|
|
AudioRenderer result = app.getAudioRenderer(); |
|
|
|
//pause the audio
|
|
|
|
if (result != null) { |
|
|
|
AudioRenderer result = app.getAudioRenderer(); |
|
|
|
logger.log(Level.INFO, "pause: {0}", result.getClass().getSimpleName()); |
|
|
|
if (result != null) { |
|
|
|
if (result instanceof AndroidAudioRenderer) { |
|
|
|
logger.log(Level.INFO, "pause: {0}", result.getClass().getSimpleName()); |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
if (result instanceof AndroidAudioRenderer) { |
|
|
|
renderer.pauseAll(); |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
|
|
|
|
renderer.pauseAll(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
isGLThreadPaused = true; |
|
|
|
isGLThreadPaused = true; |
|
|
|
logger.info("onPause"); |
|
|
|
logger.info("onPause"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|