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

Unified Diff: media/base/audio_bus.h

Issue 13726011: Add vector_math::FMUL. Replace audio_util::AdjustVolume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix volume == 1 case. Created 7 years, 8 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 | « media/audio/win/waveout_output_win.cc ('k') | media/base/audio_bus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_bus.h
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h
index 9d9563c1d27864c50c7dd0f7eb32c38ee4878278..61a53ed028606f3892975b973c5a471a890ead6d 100644
--- a/media/base/audio_bus.h
+++ b/media/base/audio_bus.h
@@ -92,6 +92,10 @@ class MEDIA_EXPORT AudioBus {
void ZeroFrames(int frames);
void ZeroFramesPartial(int start_frame, int frames);
+ // Scale internal channel values by |volume| >= 0. If an invalid value
+ // is provided, no adjustment is done.
+ void Scale(float volume);
+
private:
friend struct base::DefaultDeleter<AudioBus>;
~AudioBus();
« no previous file with comments | « media/audio/win/waveout_output_win.cc ('k') | media/base/audio_bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698