Skip to content

Commit

Permalink
Revert "ao_coreaudio: switch to ao_read_data_nonblocking()"
Browse files Browse the repository at this point in the history
This reverts commit 36d5b52.
  • Loading branch information
m154k1 authored and sfan5 committed Apr 17, 2024
1 parent 3b64bf9 commit 7a8a92b
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 @@ -89,7 +89,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_nonblocking(ao, planes, frames, end);
int samples = ao_read_data(ao, planes, frames, end);

if (samples == 0)
*aflags |= kAudioUnitRenderAction_OutputIsSilence;
Expand Down

0 comments on commit 7a8a92b

Please sign in to comment.