mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 07:55:31 +00:00
Patched to compile on C89 compilers.
This commit is contained in:
parent
9a83151e9c
commit
43674503e1
|
@ -546,10 +546,8 @@ PULSEAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iscapture) {
|
if (!iscapture) {
|
||||||
sink_struct a;
|
sink_struct a = { 0, addfn };
|
||||||
a.last = 0;
|
pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
|
||||||
a.addfn = addfn;
|
|
||||||
pa_operation* o = PULSEAUDIO_pa_context_get_sink_info_list(context,
|
|
||||||
get_sink_info_callback, &a);
|
get_sink_info_callback, &a);
|
||||||
while (!a.last) {
|
while (!a.last) {
|
||||||
if (PULSEAUDIO_pa_operation_get_state(o) == PA_OPERATION_CANCELLED) {
|
if (PULSEAUDIO_pa_operation_get_state(o) == PA_OPERATION_CANCELLED) {
|
||||||
|
|
Loading…
Reference in a new issue