diff options
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 00be70fd..57438bb7 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -615,7 +615,10 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) //{{{ data->spec.rate / device->Frequency * data->frame_size; data->attr.tlength = data->attr.minreq * device->NumUpdates; - o = ppa_stream_set_buffer_attr(data->stream, &data->attr, NULL, NULL); + o = ppa_stream_set_buffer_attr(data->stream, &data->attr, + stream_success_callback, device); + while(ppa_operation_get_state(o) == PA_OPERATION_RUNNING) + ppa_threaded_mainloop_wait(data->loop); ppa_operation_unref(o); device->Frequency = data->spec.rate; |