bug 1188704 add accessor functions for setting frequency components for inverse FFT r=rillian
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 30 Jul 2015 12:33:04 +1200
changeset 287452 b70aa71884d90b5fe7fa11270dd762db0fc23372
parent 287451 2bf6f07f8060e6c99c880b0981d46180287da2ce
child 287453 91d2934096a14c1a245fedef63136179b8043433
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs1188704
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1188704 add accessor functions for setting frequency components for inverse FFT r=rillian
dom/media/webaudio/FFTBlock.h
--- a/dom/media/webaudio/FFTBlock.h
+++ b/dom/media/webaudio/FFTBlock.h
@@ -212,20 +212,28 @@ public:
   uint32_t FFTSize() const
   {
     return mFFTSize;
   }
   float RealData(uint32_t aIndex) const
   {
     return mOutputBuffer[aIndex].r;
   }
+  float& RealData(uint32_t aIndex)
+  {
+    return mOutputBuffer[aIndex].r;
+  }
   float ImagData(uint32_t aIndex) const
   {
     return mOutputBuffer[aIndex].i;
   }
+  float& ImagData(uint32_t aIndex)
+  {
+    return mOutputBuffer[aIndex].i;
+  }
 
   size_t SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const
   {
     size_t amount = 0;
 #if defined(MOZ_LIBAV_FFT)
     amount += aMallocSizeOf(mAvRDFT);
     amount += aMallocSizeOf(mAvIRDFT);
 #else