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

Unified Diff: media/base/audio_bus.h

Issue 420603004: Use the AudioProcessing float interface in MediaStreamAudioProcessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: media/base/audio_bus.h
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h
index c78486e5e00aa5f00ce567275f0025681778ec21..d24794497f00fb832eb363700c14899896e8586b 100644
--- a/media/base/audio_bus.h
+++ b/media/base/audio_bus.h
@@ -92,6 +92,10 @@ class MEDIA_EXPORT AudioBus {
const float* channel(int channel) const { return channel_data_[channel]; }
void SetChannelData(int channel, float* data);
+ // Returns an array of pointers to each channel.
+ float** channel_data() { return &channel_data_[0]; }
tommi (sloooow) - chröme 2014/08/06 13:45:56 I would like to get Dale to look at this (and perh
+ const float* const* channel_data() const { return &channel_data_[0]; }
+
int channels() const { return static_cast<int>(channel_data_.size()); }
int frames() const { return frames_; }
void set_frames(int frames);

Powered by Google App Engine
This is Rietveld 408576698