mirror of https://github.com/mpv-player/mpv
ao_coreaudio: switch to ao_read_data_nonblocking()
This commit is contained in:
parent
5aa2068270
commit
36d5b52612
|
@ -78,7 +78,7 @@ static OSStatus render_cb_lpcm(void *ctx, AudioUnitRenderActionFlags *aflags,
|
|||
|
||||
int64_t end = mp_time_ns();
|
||||
end += p->hw_latency_ns + ca_get_latency(ts) + ca_frames_to_ns(ao, frames);
|
||||
int samples = ao_read_data(ao, planes, frames, end);
|
||||
int samples = ao_read_data_nonblocking(ao, planes, frames, end);
|
||||
|
||||
if (samples == 0)
|
||||
*aflags |= kAudioUnitRenderAction_OutputIsSilence;
|
||||
|
|
Loading…
Reference in New Issue