androidaudio: Fixed incorrect JNI call (thanks, @madebr!)
parent
660054f3dc
commit
5cbdf1168e
|
@ -1563,14 +1563,14 @@ void Android_StartAudioHotplug(SDL_AudioDevice **default_output, SDL_AudioDevice
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
// this will fire the callback for each existing device right away (which will eventually SDL_AddAudioDevice), and again later when things change.
|
// this will fire the callback for each existing device right away (which will eventually SDL_AddAudioDevice), and again later when things change.
|
||||||
(void) (*env)->CallStaticObjectMethod(env, mAudioManagerClass, midRegisterAudioDeviceCallback);
|
(*env)->CallStaticVoidMethod(env, mAudioManagerClass, midRegisterAudioDeviceCallback);
|
||||||
*default_output = *default_capture = NULL; // !!! FIXME: how do you decide the default device id?
|
*default_output = *default_capture = NULL; // !!! FIXME: how do you decide the default device id?
|
||||||
}
|
}
|
||||||
|
|
||||||
void Android_StopAudioHotplug(void)
|
void Android_StopAudioHotplug(void)
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
(void) (*env)->CallStaticObjectMethod(env, mAudioManagerClass, midUnregisterAudioDeviceCallback);
|
(*env)->CallStaticVoidMethod(env, mAudioManagerClass, midUnregisterAudioDeviceCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Android_JNI_OpenAudioDevice(SDL_AudioDevice *device)
|
int Android_JNI_OpenAudioDevice(SDL_AudioDevice *device)
|
||||||
|
|
Loading…
Reference in New Issue