Changed static variable to local variable in implementation for Android.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 30 Jan 2015 23:18:14 +0100
changeset 9322 a45110bca65e
parent 9321 01966f6feadc
child 9323 91953d0abe82
Changed static variable to local variable in implementation for Android.
src/core/android/SDL_android.c
--- a/src/core/android/SDL_android.c	Thu Jan 29 13:33:53 2015 -0800
+++ b/src/core/android/SDL_android.c	Fri Jan 30 23:18:14 2015 +0100
@@ -548,12 +548,12 @@
  * Audio support
  */
 static jboolean audioBuffer16Bit = JNI_FALSE;
-static jboolean audioBufferStereo = JNI_FALSE;
 static jobject audioBuffer = NULL;
 static void* audioBufferPinned = NULL;
 
 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames)
 {
+    jboolean audioBufferStereo;
     int audioBufferFrames;
 
     JNIEnv *env = Android_JNI_GetEnv();