Fixed issue where closing and then re-opening the audiotrack (Android 2.2 and below) would not reset the suspended state back to false/zero.

master
Joshua 2012-11-14 17:34:31 -08:00 committed by Marc Salem
parent 448719f9b0
commit adc3e73bd1
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,7 @@ static void android_stop_playback(ALCdevice *device)
data->running = 0;
pthread_join(data->thread, NULL);
}
suspended = 0;
}
static ALCboolean android_open_capture(ALCdevice *pDevice, const ALCchar *deviceName)
@ -308,6 +309,7 @@ void alc_audiotrack_deinit(void)
/* release cached AudioTrack class */
(*env)->DeleteGlobalRef(env, cAudioTrack);
(*javaVM)->DetachCurrentThread(javaVM);
cAudioTrack = NULL;
}
void alc_audiotrack_probe(int type)