Skip to content

Commit

Permalink
audiounit_ios: don't include IOBufferDuration in latency
Browse files Browse the repository at this point in the history
But continue to log it.
  • Loading branch information
tguillem committed Jan 2, 2023
1 parent 31ac778 commit 242eeb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/audio_output/audiounit_ios.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ - (NSInteger)removeAoutInstance:(AoutWrapper *)wrapperInstance
p_sys->io_buffer_duration_ticks = us;
changed = true;
}
latency_us += us;
/* Don't add 'us' to 'latency_us', IOBufferDuration is already handled by
* the render callback (end_ticks include the current buffer length). */

if (changed)
msg_Dbg(p_aout, "Current device has a new total latency of %" PRId64 "us",
Expand Down

0 comments on commit 242eeb5

Please sign in to comment.