Index: media/base/audio_bus.h |
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h |
index 0baa27aa57949480642efe1e68de17afeb45349f..38369c3793475cbd5c9f5e62d47373a229261c7b 100644 |
--- a/media/base/audio_bus.h |
+++ b/media/base/audio_bus.h |
@@ -69,6 +69,14 @@ class MEDIA_EXPORT AudioBus { |
void SetChannelData(int channel, float* data); |
void set_frames(int frames); |
+ int data_size() const { return data_size_; } |
DaleCurtis
2017/06/15 21:46:32
this should be GetBitstreamDataSize() and DCHECK(i
AndyWu
2017/08/02 01:43:40
Done.
|
+ void set_data_size(int data_size) { data_size_ = data_size; } |
+ |
+ int is_bitstream_format() const { return is_bitstream_format_; } |
+ void set_is_bitstream_format(bool is_bitstream_format) { |
+ is_bitstream_format_ = is_bitstream_format; |
+ } |
+ |
// Overwrites the sample values stored in this AudioBus instance with values |
// from a given interleaved |source_buffer| with expected layout |
// [ch0, ch1, ..., chN, ch0, ch1, ...] and sample values in the format |
@@ -206,6 +214,8 @@ class MEDIA_EXPORT AudioBus { |
// Contiguous block of channel memory. |
std::unique_ptr<float, base::AlignedFreeDeleter> data_; |
+ int data_size_; |
+ bool is_bitstream_format_; |
// One float pointer per channel pointing to a contiguous block of memory for |
// that channel. If the memory is owned by this instance, this will |