mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 17:55:37 +00:00
parent
e444b8823b
commit
d8a7a794d3
|
@ -929,13 +929,6 @@ static int instream_open_pa(SoundIoPrivate *si, SoundIoInStreamPrivate *is) {
|
|||
ispa->buffer_attr.fragsize = buffer_length;
|
||||
}
|
||||
|
||||
int err;
|
||||
pa_operation *update_timing_info_op = pa_stream_update_timing_info(ispa->stream, timing_update_callback, si);
|
||||
if ((err = perform_operation(si, update_timing_info_op))) {
|
||||
pa_threaded_mainloop_unlock(sipa->main_loop);
|
||||
return err;
|
||||
}
|
||||
|
||||
pa_threaded_mainloop_unlock(sipa->main_loop);
|
||||
|
||||
return 0;
|
||||
|
@ -962,6 +955,13 @@ static int instream_start_pa(SoundIoPrivate *si, SoundIoInStreamPrivate *is) {
|
|||
while (!ispa->stream_ready)
|
||||
pa_threaded_mainloop_wait(sipa->main_loop);
|
||||
|
||||
pa_operation *update_timing_info_op = pa_stream_update_timing_info(ispa->stream, timing_update_callback, si);
|
||||
if ((err = perform_operation(si, update_timing_info_op))) {
|
||||
pa_threaded_mainloop_unlock(sipa->main_loop);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
pa_threaded_mainloop_unlock(sipa->main_loop);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue