mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-19 19:42:24 +02:00
Revert "ao_coreaudio: switch to ao_read_data_nonblocking()"
This reverts commit 36d5b52612
.
This commit is contained in:
parent
3b64bf908a
commit
7a8a92be8d
@ -89,7 +89,7 @@ static OSStatus render_cb_lpcm(void *ctx, AudioUnitRenderActionFlags *aflags,
|
|||||||
|
|
||||||
int64_t end = mp_time_ns();
|
int64_t end = mp_time_ns();
|
||||||
end += p->hw_latency_ns + ca_get_latency(ts) + ca_frames_to_ns(ao, frames);
|
end += p->hw_latency_ns + ca_get_latency(ts) + ca_frames_to_ns(ao, frames);
|
||||||
int samples = ao_read_data_nonblocking(ao, planes, frames, end);
|
int samples = ao_read_data(ao, planes, frames, end);
|
||||||
|
|
||||||
if (samples == 0)
|
if (samples == 0)
|
||||||
*aflags |= kAudioUnitRenderAction_OutputIsSilence;
|
*aflags |= kAudioUnitRenderAction_OutputIsSilence;
|
||||||
|
Loading…
Reference in New Issue
Block a user