src/core/android/SDL_android.c
changeset 9322 a45110bca65e
parent 9314 8d826bc39a45
child 9438 fff5af5de6dd
equal deleted inserted replaced
9321:01966f6feadc 9322:a45110bca65e
   546 
   546 
   547 /*
   547 /*
   548  * Audio support
   548  * Audio support
   549  */
   549  */
   550 static jboolean audioBuffer16Bit = JNI_FALSE;
   550 static jboolean audioBuffer16Bit = JNI_FALSE;
   551 static jboolean audioBufferStereo = JNI_FALSE;
       
   552 static jobject audioBuffer = NULL;
   551 static jobject audioBuffer = NULL;
   553 static void* audioBufferPinned = NULL;
   552 static void* audioBufferPinned = NULL;
   554 
   553 
   555 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames)
   554 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames)
   556 {
   555 {
       
   556     jboolean audioBufferStereo;
   557     int audioBufferFrames;
   557     int audioBufferFrames;
   558 
   558 
   559     JNIEnv *env = Android_JNI_GetEnv();
   559     JNIEnv *env = Android_JNI_GetEnv();
   560 
   560 
   561     if (!env) {
   561     if (!env) {