Index: media/audio/mac/audio_auhal_mac.cc |
diff --git a/media/audio/mac/audio_auhal_mac.cc b/media/audio/mac/audio_auhal_mac.cc |
index 4092a44522c20d664c7c68feac57930a71593a0b..39c4610495392cac6faa92da8ffb1e55c6b05656 100644 |
--- a/media/audio/mac/audio_auhal_mac.cc |
+++ b/media/audio/mac/audio_auhal_mac.cc |
@@ -53,7 +53,6 @@ |
hardware_latency_frames_(0), |
stopped_(true), |
current_hardware_pending_bytes_(0), |
- current_lost_frames_(0), |
last_sample_time_(0.0), |
last_number_of_frames_(0), |
total_lost_frames_(0), |
@@ -249,11 +248,11 @@ |
} |
// Supply the input data and render the output data. |
- source_->OnMoreData(dest, current_hardware_pending_bytes_ + |
- frame_delay * params_.GetBytesPerFrame(), |
- current_lost_frames_); |
+ source_->OnMoreData( |
+ dest, |
+ current_hardware_pending_bytes_ + |
+ frame_delay * params_.GetBytesPerFrame()); |
dest->Scale(volume_); |
- current_lost_frames_ = 0; |
} |
// AUHAL callback. |
@@ -361,7 +360,6 @@ |
// glitch count etc and keep a record of the largest glitch. |
auto lost_frames = diff - last_number_of_frames_; |
total_lost_frames_ += lost_frames; |
- current_lost_frames_ += lost_frames; |
if (lost_frames > largest_glitch_frames_) |
largest_glitch_frames_ = lost_frames; |
++glitches_detected_; |