Officially switch to the new Android audio system (PART 2..)

experimental
shadowislord 10 years ago
parent be1f219f29
commit 8426bb7baf
  1. 4
      jme3-android/src/main/java/com/jme3/app/AndroidHarness.java
  2. 4
      jme3-android/src/main/java/com/jme3/system/android/JmeAndroidSystem.java

@ -91,7 +91,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
/** /**
* Sets the type of Audio Renderer to be used. * Sets the type of Audio Renderer to be used.
* <p> * <p>
* Android MediaPlayer / SoundPool is the default and can be used on all * Android MediaPlayer / SoundPool can be used on all
* supported Android platform versions (2.2+)<br> * supported Android platform versions (2.2+)<br>
* OpenAL Soft uses an OpenSL backend and is only supported on Android * OpenAL Soft uses an OpenSL backend and is only supported on Android
* versions 2.3+. * versions 2.3+.
@ -99,7 +99,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
* Only use ANDROID_ static strings found in AppSettings * Only use ANDROID_ static strings found in AppSettings
* *
*/ */
protected String audioRendererType = AppSettings.ANDROID_MEDIAPLAYER; protected String audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
/** /**
* If true Android Sensors are used as simulated Joysticks. Users can use the * If true Android Sensors are used as simulated Joysticks. Users can use the

@ -106,8 +106,8 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
} else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_OPENAL_SOFT)) { } else if (settings.getAudioRenderer().equals(AppSettings.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 OpenAL Soft");
audioRendererType = AppSettings.ANDROID_MEDIAPLAYER; audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
} }
initialize(settings); initialize(settings);
JmeContext ctx = new OGLESContext(); JmeContext ctx = new OGLESContext();

Loading…
Cancel
Save