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

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

Loading…
Cancel
Save