2017-01-15 19:06:14 +00:00
|
|
|
#ifndef AUDIOEFFECT_H
|
|
|
|
#define AUDIOEFFECT_H
|
|
|
|
|
|
|
|
#include "audio_frame.h"
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
|
|
|
|
class AudioEffectInstance : public Reference {
|
|
|
|
GDCLASS(AudioEffectInstance,Reference)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2017-01-21 22:00:25 +00:00
|
|
|
virtual void process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count)=0;
|
2017-01-15 19:06:14 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class AudioEffect : public Resource {
|
|
|
|
GDCLASS(AudioEffect,Resource)
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual Ref<AudioEffectInstance> instance()=0;
|
|
|
|
AudioEffect();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUDIOEFFECT_H
|