Fix a bug in computing audio delay on ios device. Converts seconds to
milliseconds by multiplying 1000 instead of dividing 1000. BUG= R=tkchin@webrtc.org Review URL: https://codereview.webrtc.org/1265823003 . Patch from Jiawei Ou <jiawei.ou@gmail.com>. Cr-Commit-Position: refs/heads/master@{#9693}
This commit is contained in:
1
AUTHORS
1
AUTHORS
@ -12,6 +12,7 @@ Giji Gangadharan <giji.g@samsung.com>
|
||||
Graham Yoakum <gyoakum@skobalt.com>
|
||||
Jake Hilton <jakehilton@gmail.com>
|
||||
James H. Brown <jbrown@burgoyne.com>
|
||||
Jiawei Ou <jiawei.ou@gmail.com>
|
||||
Jie Mao <maojie0924@gmail.com>
|
||||
Luke Weber <luke.weber@gmail.com>
|
||||
Manish Jethani <manish.jethani@gmail.com>
|
||||
|
@ -917,7 +917,7 @@ void AudioDeviceIOS::UpdatePlayoutDelay() {
|
||||
totalDelaySeconds += f64;
|
||||
|
||||
// To ms
|
||||
_playoutDelay = static_cast<uint32_t>(totalDelaySeconds / 1000);
|
||||
_playoutDelay = static_cast<uint32_t>(totalDelaySeconds * 1000);
|
||||
|
||||
// Reset counter
|
||||
_playoutDelayMeasurementCounter = 0;
|
||||
|
Reference in New Issue
Block a user