Bug 1444479 - P11. Remove ununsed constant. r?padenot draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 16 Mar 2018 17:13:19 +0100
changeset 769404 d44c26a3840fe84412e6c5c826c1917263720872
parent 769403 599a48b901626431bd19c7d207d78f7e238c25b1
push id103110
push userbmo:jyavenard@mozilla.com
push dateMon, 19 Mar 2018 14:36:56 +0000
reviewerspadenot
bugs1444479
milestone61.0a1
Bug 1444479 - P11. Remove ununsed constant. r?padenot MozReview-Commit-ID: JJ5vdecIlqy
dom/media/AudioConfig.h
--- a/dom/media/AudioConfig.h
+++ b/dom/media/AudioConfig.h
@@ -8,19 +8,16 @@
 
 #include <cstdint>
 #include <initializer_list>
 #include "mozilla/MathAlgorithms.h"
 #include "nsTArray.h"
 
 namespace mozilla {
 
-  // Maximum channel number we can currently handle (7.1)
-#define MAX_AUDIO_CHANNELS 8
-
 class AudioConfig
 {
 public:
   // Channel definition is conveniently defined to be in the same order as
   // WAVEFORMAT && SMPTE, even though this is unused for now.
   enum Channel
   {
     CHANNEL_INVALID = -1,
@@ -233,16 +230,21 @@ public:
 #error "Not supported audio type"
 #endif
   };
 
   AudioConfig(const ChannelLayout& aChannelLayout,
               uint32_t aRate,
               AudioConfig::SampleFormat aFormat = FORMAT_DEFAULT,
               bool aInterleaved = true);
+  AudioConfig(const ChannelLayout& aChannelLayout,
+              uint32_t aChannels,
+              uint32_t aRate,
+              AudioConfig::SampleFormat aFormat = FORMAT_DEFAULT,
+              bool aInterleaved = true);
   // Will create a channel configuration from default SMPTE ordering.
   AudioConfig(uint32_t aChannels,
               uint32_t aRate,
               AudioConfig::SampleFormat aFormat = FORMAT_DEFAULT,
               bool aInterleaved = true);
 
   const ChannelLayout& Layout() const { return mChannelLayout; }
   uint32_t Channels() const