Browse Source

Changed static variable to local variable in implementation for Android.

Philipp Wiesemann 10 years ago
parent
commit
f1a56cd565
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/android/SDL_android.c

+ 1 - 1
src/core/android/SDL_android.c

@@ -548,12 +548,12 @@ int Android_JNI_SetupThread(void)
  * Audio support
  * Audio support
  */
  */
 static jboolean audioBuffer16Bit = JNI_FALSE;
 static jboolean audioBuffer16Bit = JNI_FALSE;
-static jboolean audioBufferStereo = JNI_FALSE;
 static jobject audioBuffer = NULL;
 static jobject audioBuffer = NULL;
 static void* audioBufferPinned = NULL;
 static void* audioBufferPinned = NULL;
 
 
 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames)
 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames)
 {
 {
+    jboolean audioBufferStereo;
     int audioBufferFrames;
     int audioBufferFrames;
 
 
     JNIEnv *env = Android_JNI_GetEnv();
     JNIEnv *env = Android_JNI_GetEnv();