Index: media/base/channel_layout.h |
diff --git a/media/base/channel_layout.h b/media/base/channel_layout.h |
index 6a7d1ad6f55037bd4432b127e0f539c05624244a..ac10661daf90ebb4d223a73ba1ff56d6169a5a6f 100644 |
--- a/media/base/channel_layout.h |
+++ b/media/base/channel_layout.h |
@@ -5,6 +5,7 @@ |
#ifndef MEDIA_BASE_CHANNEL_LAYOUT_H_ |
#define MEDIA_BASE_CHANNEL_LAYOUT_H_ |
+#include "build/build_config.h" |
#include "media/base/media_export.h" |
enum ChannelLayout { |
@@ -77,6 +78,7 @@ enum Channels { |
CHANNELS_MAX |
}; |
+#if defined(OS_MACOSX) || defined(USE_PULSEAUDIO) |
// The channel orderings for each layout as specified by FFmpeg. |
// Values represent the index of each channel in each layout. For example, the |
// left side surround sound channel in FFmpeg's 5.1 layout is in the 5th |
@@ -84,6 +86,7 @@ enum Channels { |
// kChannelOrderings[CHANNEL_LAYOUT_5POINT1][SIDE_LEFT] = 4; |
// Values of -1 mean the channel at that index is not used for that layout. |
extern const int kChannelOrderings[CHANNEL_LAYOUT_MAX][CHANNELS_MAX]; |
+#endif |
// Returns the number of channels in a given ChannelLayout. |
MEDIA_EXPORT int ChannelLayoutToChannelCount(ChannelLayout layout); |