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.
parent
448719f9b0
commit
adc3e73bd1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue