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

Unified Diff: media/base/audio_bus.h

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month 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 6d381ccac3daa3c9325fb9d4af99259e4cef3825..3610be806241696d1249b644565dab45045cdc07 100644
--- a/media/base/audio_bus.h
+++ b/media/base/audio_bus.h
@@ -72,6 +72,12 @@ class MEDIA_EXPORT AudioBus {
void SetChannelData(int channel, float* data);
void set_frames(int frames);
+ int data_size() const { return data_size_; }
+ void set_data_size(int data_size);
DaleCurtis 2016/11/01 23:05:13 hacker_style() methods must be inline; I know we h
AndyWu 2016/11/04 18:04:24 Thanks, I fixed hacker_style() methods. Last time
+
+ int is_raw_format() const { return is_raw_format_; }
+ void set_is_raw_format(bool is_raw_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
@@ -209,6 +215,8 @@ class MEDIA_EXPORT AudioBus {
// Contiguous block of channel memory.
std::unique_ptr<float, base::AlignedFreeDeleter> data_;
+ int data_size_;
+ bool is_raw_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

Powered by Google App Engine
This is Rietveld 408576698