mirror of https://github.com/mpv-player/mpv
Revert "ao_coreaudio: signal buffer underruns"
This reverts commit 0341a6f1d3
.
Fixes #13348.
This commit is contained in:
parent
5109c599db
commit
d46d428f73
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue