//-- AudioFiltersNative.h - Contains audio filtering algorithms #pragma once #ifdef AUDIOFILTERSNATIVE_EXPORTS #define AUDIOFILTERSNATIVE_API __declspec(dllexport) #else #define AUDIOFILTERSNATIVE_API __declspec(dllimport) #endif extern "C" AUDIOFILTERSNATIVE_API void InitializeFilters(float sampleRate); extern "C" AUDIOFILTERSNATIVE_API void ApplyBandStopFilter(float* data, int channels, int dataLength, float* bufferLow, float* bufferHigh,float lowCutoff,float highCutoff); extern "C" AUDIOFILTERSNATIVE_API float ApplyBandStopFilterInternal(float sample, int channel, float* bufferLow,float* bufferHigh); extern "C" AUDIOFILTERSNATIVE_API float ApplyLowPassFilter(float sample, float alpha, float* data, int channel); extern "C" AUDIOFILTERSNATIVE_API float ApplyHighPassFilter(float sample, float alpha, float* data, int channel);