Skip to content

Commit

Permalink
ao_coreaudio: add a comment for ignoring returned sample count
Browse files Browse the repository at this point in the history
Co-authored-by: sfan5 <[email protected]>
  • Loading branch information
2 people authored and Akemi committed Apr 19, 2024
1 parent d46d428 commit e855836
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions audio/out/ao_coreaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e855836

Please sign in to comment.