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

Unified Diff: content/renderer/media/media_stream_audio_level_calculator.h

Issue 216773003: Use the absolute magnitude instead of the bar level as the level of the input signal (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 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
Index: content/renderer/media/media_stream_audio_level_calculator.h
diff --git a/content/renderer/media/media_stream_audio_level_calculator.h b/content/renderer/media/media_stream_audio_level_calculator.h
index 1440d2bff2cdf33e825bc3b9b65cf79f47dbe247..41c9c34f7be1b2f803941ca2429417ddc8eb4fdc 100644
--- a/content/renderer/media/media_stream_audio_level_calculator.h
+++ b/content/renderer/media/media_stream_audio_level_calculator.h
@@ -20,8 +20,7 @@ class MediaStreamAudioLevelCalculator {
~MediaStreamAudioLevelCalculator();
// Calculates the signal level of the audio data.
- // Returns the level of bars that the volume animation UI uses for
- // presenting the energy level of the audio data.
+ // Returns the absolute value of the amplitude of the signal.
int Calculate(const int16* audio_data, int number_of_channels,
int number_of_frames);

Powered by Google App Engine
This is Rietveld 408576698