Bug 1444479 - P11. Remove unused constant. r=padenot
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 16 Mar 2018 17:13:19 +0100
changeset 772111 8d4c3cf648d6a9eecb8939df9c4f868570561ec8
parent 772110 34d5728973b4a2837eb6945446114957fb34ac00
child 772112 b4aeb99d1cb601e5a5288ca05630913fa8528a1c
child 772170 a0832da6741d15c722a86ac851c335b1d2be472d
push id103847
push userkgupta@mozilla.com
push dateSat, 24 Mar 2018 23:19:36 +0000
reviewerspadenot
bugs1444479
milestone61.0a1
Bug 1444479 - P11. Remove unused 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,
@@ -212,16 +209,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