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

Unified Diff: media/base/channel_layout.h

Issue 2695633006: Use preferred channel layout on macOS instead of total channel count. (Closed)
Patch Set: Fix compilation issues. Created 3 years, 10 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/mac/audio_manager_mac.cc ('k') | media/base/channel_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/channel_layout.h
diff --git a/media/base/channel_layout.h b/media/base/channel_layout.h
index 33575882f94e5d37200606893276d59da8cb9755..aaecf6b9ea6e96056a1d8b41d3e7913ac767a89d 100644
--- a/media/base/channel_layout.h
+++ b/media/base/channel_layout.h
@@ -129,6 +129,10 @@ enum Channels {
CHANNELS_MAX = SIDE_RIGHT, // Must always equal the largest value ever logged.
};
+// The maximum number of concurrently active channels for all possible layouts.
+// ChannelLayoutToChannelCount() will never return a value higher than this.
+constexpr int kMaxConcurrentChannels = 8;
+
// Returns the expected channel position in an interleaved stream. Values of -1
// mean the channel at that index is not used for that layout. Values range
// from 0 to ChannelLayoutToChannelCount(layout) - 1.
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/base/channel_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698