bug 1388656 remove unused SAMPLE_RATE SetInt32Parameter case r?padenot draft
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 08 Aug 2017 15:56:09 +1200
changeset 645160 9ec1754346eff00d81a16336410db80d23f16658
parent 645159 1f5a5e1eaea15eef0e53d05ad2a2dc3b39aba604
child 645161 b4746306e776fab1aa3656b9b3a93b6c9fe70bab
push id73684
push userktomlinson@mozilla.com
push dateFri, 11 Aug 2017 22:29:12 +0000
reviewerspadenot
bugs1388656
milestone57.0a1
bug 1388656 remove unused SAMPLE_RATE SetInt32Parameter case r?padenot Sample rate is passed as a double.
dom/media/webaudio/ConvolverNode.cpp
--- a/dom/media/webaudio/ConvolverNode.cpp
+++ b/dom/media/webaudio/ConvolverNode.cpp
@@ -49,19 +49,16 @@ public:
     case BUFFER_LENGTH:
       // BUFFER_LENGTH is the first parameter that we set when setting a new buffer,
       // so we should be careful to invalidate the rest of our state here.
       mBuffer = nullptr;
       mSampleRate = 0.0f;
       mBufferLength = aParam;
       mLeftOverData = INT32_MIN;
       break;
-    case SAMPLE_RATE:
-      mSampleRate = aParam;
-      break;
     case NORMALIZE:
       mNormalize = !!aParam;
       break;
     default:
       NS_ERROR("Bad ConvolverNodeEngine Int32Parameter");
     }
   }
   void SetDoubleParameter(uint32_t aIndex, double aParam) override