diff options
author | Misaki Kasumi <misakikasumi@outlook.com> | 2024-04-19 17:55:12 +0800 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-04-20 00:12:16 +0200 |
commit | e855836ed1e5f747d0b0461cd26d9b0f809dfc9d (patch) | |
tree | 9d7b1f470aa9668b67a5149c20565d5589c268e9 /audio | |
parent | d46d428f73c7e4511e72b5a70512348b74875e03 (diff) | |
download | mpv-e855836ed1e5f747d0b0461cd26d9b0f809dfc9d.tar.bz2 mpv-e855836ed1e5f747d0b0461cd26d9b0f809dfc9d.tar.xz |
ao_coreaudio: add a comment for ignoring returned sample count
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_coreaudio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index b170d393c5..4abfac38ee 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -89,6 +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); + // don't use the returned sample count since CoreAudio always expects full frames ao_read_data(ao, planes, frames, end); return noErr; } |