Frequency Domain implementation of Dynamics Processing Effect
Ported the frequency domain implementation of the effect from the
development sandbox.
Bug: 64161702
Bug: 38266419
Test: manual with Triton app. Cts tests. Listening tests.
Change-Id: I9417beba2f98f2a677f0857c7976bf76a0e0d8e0
diff --git a/media/libeffects/dynamicsproc/dsp/DPBase.h b/media/libeffects/dynamicsproc/dsp/DPBase.h
index 52593ef..355f64b 100644
--- a/media/libeffects/dynamicsproc/dsp/DPBase.h
+++ b/media/libeffects/dynamicsproc/dsp/DPBase.h
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+#ifndef DPBASE_H_
+#define DPBASE_H_
+
+
#include <stdint.h>
#include <cmath>
#include <vector>
@@ -297,8 +301,8 @@
void init(uint32_t channelCount, bool preEqInUse, uint32_t preEqBandCount,
bool mbcInUse, uint32_t mbcBandCount, bool postEqInUse, uint32_t postEqBandCount,
bool limiterInUse);
- virtual size_t processSamples(float *in, float *out, size_t samples);
- virtual void reset();
+ virtual size_t processSamples(const float *in, float *out, size_t samples) = 0;
+ virtual void reset() = 0;
DPChannel* getChannel(uint32_t channelIndex);
uint32_t getChannelCount() const {
@@ -342,3 +346,6 @@
};
} //namespace dp_fx
+
+
+#endif // DPBASE_H_