Revert "ao_coreaudio: signal buffer underruns"

This reverts commit 0341a6f1d3.
Fixes #13348.
This commit is contained in:
Misaki Kasumi 2024-04-19 16:26:05 +08:00 committed by der richter
parent 5109c599db
commit d46d428f73
1 changed files with 1 additions and 8 deletions

View File

@ -89,14 +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(ao, planes, frames, end);
if (samples == 0)
*aflags |= kAudioUnitRenderAction_OutputIsSilence;
for (int n = 0; n < buffer_list->mNumberBuffers; n++)
buffer_list->mBuffers[n].mDataByteSize = samples * ao->sstride;
ao_read_data(ao, planes, frames, end);
return noErr;
}