Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: webrtc/modules/audio_device/ios/audio_device_ios.mm

Issue 1265823003: Fix a bug in computing audio delay on ios device. Converts seconds to (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/ios/audio_device_ios.mm
diff --git a/webrtc/modules/audio_device/ios/audio_device_ios.mm b/webrtc/modules/audio_device/ios/audio_device_ios.mm
index 1d3c8e31d0e7b24d857c5f052c03a9954e93195a..09419f2bda9205f82124943b11ee5fd9678d0412 100644
--- a/webrtc/modules/audio_device/ios/audio_device_ios.mm
+++ b/webrtc/modules/audio_device/ios/audio_device_ios.mm
@@ -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;
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698