Android OpenAL Soft: Clean up some logging

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10620 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
iwg..om 12 years ago
parent efa80e0e2d
commit 509cc7ba70
  1. 8
      engine/src/android/com/jme3/audio/android/AndroidOpenALSoftAudioRenderer.java
  2. 2
      engine/src/android/com/jme3/system/android/JmeAndroidSystem.java

@ -126,7 +126,6 @@ public class AndroidOpenALSoftAudioRenderer implements AndroidAudioRenderer, Run
} }
} }
logger.log(Level.INFO, "Exiting audioThread run loop");
synchronized (threadLock) { synchronized (threadLock) {
cleanupInThread(); cleanupInThread();
} }
@ -136,7 +135,6 @@ public class AndroidOpenALSoftAudioRenderer implements AndroidAudioRenderer, Run
try { try {
if (!alIsCreated()) { if (!alIsCreated()) {
//AL.create(); //AL.create();
logger.log(Level.INFO, "Creating OpenAL Soft Renderer");
alCreate(); alCreate();
checkError(false); checkError(false);
} }
@ -190,8 +188,6 @@ public class AndroidOpenALSoftAudioRenderer implements AndroidAudioRenderer, Run
//supportEfx = alcIsExtensionPresent(device, "ALC_EXT_EFX"); //supportEfx = alcIsExtensionPresent(device, "ALC_EXT_EFX");
supportEfx = alcIsExtensionPresent(AL.ALC_EXT_EFX_NAME); supportEfx = alcIsExtensionPresent(AL.ALC_EXT_EFX_NAME);
logger.log(Level.INFO, "{0} found: {1}",
new Object[]{AL.ALC_EXT_EFX_NAME, supportEfx});
if (supportEfx) { if (supportEfx) {
ib.position(0).limit(1); ib.position(0).limit(1);
@ -232,10 +228,8 @@ public class AndroidOpenALSoftAudioRenderer implements AndroidAudioRenderer, Run
} }
public void cleanupInThread() { public void cleanupInThread() {
logger.log(Level.INFO, "cleanupInThread");
if (audioDisabled) { if (audioDisabled) {
//AL.destroy(); //AL.destroy();
logger.log(Level.INFO, "Destroying OpenAL Soft Renderer with audioDisabled");
alDestroy(); alDestroy();
checkError(true); checkError(true);
return; return;
@ -279,10 +273,8 @@ public class AndroidOpenALSoftAudioRenderer implements AndroidAudioRenderer, Run
} }
public void cleanup() { public void cleanup() {
logger.log(Level.INFO, "cleanup");
// kill audio thread // kill audio thread
if (audioThread.isAlive()) { if (audioThread.isAlive()) {
logger.log(Level.INFO, "Interrupting audioThread");
audioThread.interrupt(); audioThread.interrupt();
} }
} }

@ -98,10 +98,8 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
@Override @Override
public JmeContext newContext(AppSettings settings, Type contextType) { public JmeContext newContext(AppSettings settings, Type contextType) {
if (settings.getAudioRenderer().equals(AppSettings.ANDROID_MEDIAPLAYER)) { if (settings.getAudioRenderer().equals(AppSettings.ANDROID_MEDIAPLAYER)) {
logger.log(Level.INFO, "newContext settings set to Android MediaPlayer / SoundPool");
audioRendererType = AppSettings.ANDROID_MEDIAPLAYER; audioRendererType = AppSettings.ANDROID_MEDIAPLAYER;
} else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_OPENAL_SOFT)) { } else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_OPENAL_SOFT)) {
logger.log(Level.INFO, "newContext settings set to Android OpenAL Soft");
audioRendererType = AppSettings.ANDROID_OPENAL_SOFT; audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
} else { } else {
logger.log(Level.INFO, "AudioRenderer not set. Defaulting to Android MediaPlayer / SoundPool"); logger.log(Level.INFO, "AudioRenderer not set. Defaulting to Android MediaPlayer / SoundPool");

Loading…
Cancel
Save