Index: media/audio/pulse/pulse_input.cc |
diff --git a/media/audio/pulse/pulse_input.cc b/media/audio/pulse/pulse_input.cc |
index 4e48e10ec442d611bdcc2b5e67d78743aaa79780..d0014e9ac2950657c7d9f68165ae226bcb08a135 100644 |
--- a/media/audio/pulse/pulse_input.cc |
+++ b/media/audio/pulse/pulse_input.cc |
@@ -246,11 +246,10 @@ void PulseAudioInputStream::ReadData() { |
// Update the AGC volume level once every second. Note that, |
// |volume| is also updated each time SetVolume() is called |
// through IPC by the render-side AGC. |
- // QueryAgcVolume() will trigger a callback to asynchronously update the |
- // |volume_|, we disregard the |normalized_volume| from QueryAgcVolume() |
+ // We disregard the |normalized_volume| from GetAgcVolume() |
// and use the value calculated by |volume_|. |
double normalized_volume = 0.0; |
- QueryAgcVolume(&normalized_volume); |
+ GetAgcVolume(&normalized_volume); |
normalized_volume = volume_ / GetMaxVolume(); |
do { |