virtualx-engine/servers/audio/audio_effect.h

27 lines
432 B
C++
Raw Normal View History

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