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

Unified Diff: media/audio/audio_util.h

Issue 10823175: Switch AudioRenderSink::Callback to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup MCR AudioBus usage. Created 8 years, 4 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/audio_output_device_unittest.cc ('k') | media/audio/audio_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util.h
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h
index 4ac0ef63b94b71ef8e7bb9a3d8c29ae939dbd60c..d25fdf9203e6f9efdd0dffb9b9a818abb7b65066 100644
--- a/media/audio/audio_util.h
+++ b/media/audio/audio_util.h
@@ -6,7 +6,6 @@
#define MEDIA_AUDIO_AUDIO_UTIL_H_
#include <string>
-#include <vector>
#include "base/basictypes.h"
#include "media/base/channel_layout.h"
@@ -17,6 +16,7 @@ class SharedMemory;
}
namespace media {
+class AudioBus;
// For all audio functions 3 audio formats are supported:
// 8 bits unsigned 0 to 255.
@@ -86,7 +86,7 @@ MEDIA_EXPORT bool DeinterleaveAudioChannel(void* source,
// The size of the |source| vector determines the number of channels.
// The |destination| buffer is assumed to be large enough to hold the
// result. Thus it must be at least size: number_of_frames * source.size()
-MEDIA_EXPORT void InterleaveFloatToInt(const std::vector<float*>& source,
+MEDIA_EXPORT void InterleaveFloatToInt(const AudioBus* audio_bus,
void* destination,
size_t number_of_frames,
int bytes_per_sample);
« no previous file with comments | « media/audio/audio_output_device_unittest.cc ('k') | media/audio/audio_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698