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

Unified Diff: media/base/audio_parameters.cc

Issue 2503233003: Add enumerations for compressed (E)AC3 sample format (Closed)
Patch Set: Fix proto 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
« no previous file with comments | « media/base/audio_parameters.h ('k') | media/base/sample_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_parameters.cc
diff --git a/media/base/audio_parameters.cc b/media/base/audio_parameters.cc
index e3f9bb514257707935dbbe3bdbfd7f7ed3c330d5..2ae8c32422d2624c708c97fc17ef7fe793bd7d6a 100644
--- a/media/base/audio_parameters.cc
+++ b/media/base/audio_parameters.cc
@@ -97,6 +97,10 @@ bool AudioParameters::Equals(const AudioParameters& other) const {
effects_ == other.effects() && mic_positions_ == other.mic_positions_;
}
+bool AudioParameters::IsBitstreamFormat() const {
+ return format_ == AUDIO_BITSTREAM_AC3 || format_ == AUDIO_BITSTREAM_EAC3;
+}
+
// static
AudioParameters AudioParameters::UnavailableDeviceParams() {
return media::AudioParameters(
« no previous file with comments | « media/base/audio_parameters.h ('k') | media/base/sample_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698