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

Unified Diff: media/audio/audio_util.h

Issue 9641026: Add software audio mixing to the audio utils. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | media/audio/audio_util.cc » ('j') | media/audio/audio_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util.h
===================================================================
--- media/audio/audio_util.h (revision 125439)
+++ media/audio/audio_util.h (working copy)
@@ -40,6 +40,15 @@
int bytes_per_sample,
float volume);
+// MixStreams() mixes 2 audio streams with same sample rate and number of
+// samples, adjusting volume on one of them.
+// Dst += Src * volume.
+MEDIA_EXPORT void MixStreams(void* dst,
+ void* src,
+ size_t buflen,
+ int bytes_per_sample,
+ float volume);
+
// FoldChannels() does a software multichannel folding down to stereo.
// Channel order is assumed to be 5.1 Dolby standard which is
// front left, front right, center, surround left, surround right.
« no previous file with comments | « no previous file | media/audio/audio_util.cc » ('j') | media/audio/audio_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698