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

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 NaCl. Add unittests. 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
Index: media/base/audio_bus.h
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h
index 9d9563c1d27864c50c7dd0f7eb32c38ee4878278..73eb6e4cdc12773beda928545117dfa6ad0f7dec 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 0 <= |volume| <= 1. If an invalid value
Chris Rogers 2013/04/05 21:31:35 please see comment in .cc about supporting other r
DaleCurtis 2013/04/05 23:52:30 Done.
+ // is provided, no adjustment is done.
+ void AdjustVolume(float volume);
+
private:
friend struct base::DefaultDeleter<AudioBus>;
~AudioBus();

Powered by Google App Engine
This is Rietveld 408576698