mirror of https://github.com/AxioDL/amuse.git
28 lines
498 B
C++
28 lines
498 B
C++
#ifndef __AMUSE_EFFECTBASE_HPP__
|
|
#define __AMUSE_EFFECTBASE_HPP__
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
namespace amuse
|
|
{
|
|
struct ChannelMap;
|
|
|
|
class EffectBaseTypeless
|
|
{
|
|
public:
|
|
virtual ~EffectBaseTypeless() = default;
|
|
virtual void resetOutputSampleRate(double sampleRate)=0;
|
|
};
|
|
|
|
template <typename T>
|
|
class EffectBase : public EffectBaseTypeless
|
|
{
|
|
public:
|
|
virtual void applyEffect(T* audio, size_t frameCount, const ChannelMap& chanMap)=0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __AMUSE_EFFECTBASE_HPP__
|