Skip to content

Commit

Permalink
ao_coreaudio: switch to ao_read_data_nonblocking()
Browse files Browse the repository at this point in the history
  • Loading branch information
t-8ch authored and sfan5 committed Nov 8, 2023
1 parent 5aa2068 commit 36d5b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36d5b52

Please sign in to comment.