[vlc-commits] audiounit_ios: fetch audio output latency
Thomas Guillem
git at videolan.org
Wed Mar 1 17:49:53 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 1 11:56:02 2017 +0100| [d065678ca863cda687943c0b4a4cacd24f5668c5] | committer: Thomas Guillem
audiounit_ios: fetch audio output latency
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d065678ca863cda687943c0b4a4cacd24f5668c5
---
modules/audio_output/audiounit_ios.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index 432e35f..459a263 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -248,12 +248,15 @@ Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
goto error;
}
+ p_sys->c.i_latency_us = [instance outputLatency] * CLOCK_FREQ;
+
if (p_sys->b_muted)
Pause(p_aout, true, 0);
p_aout->mute_set = MuteSet;
p_aout->pause = Pause;
- msg_Dbg(p_aout, "analog AudioUnit output successfully opened");
+ msg_Dbg(p_aout, "analog AudioUnit output successfully opened "
+ "(latency: %lld us)", p_sys->c.i_latency_us);
return VLC_SUCCESS;
error:
More information about the vlc-commits
mailing list