summaryrefslogtreecommitdiff
path: root/servers/audio/audio_effect.h
blob: 02eb258f99d346bfe9300de379e96c52ad42915b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef AUDIOEFFECT_H
#define AUDIOEFFECT_H

#include "audio_frame.h"
#include "resource.h"


class AudioEffectInstance : public Reference {
	GDCLASS(AudioEffectInstance,Reference)

public:

	virtual void process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count)=0;

};


class AudioEffect : public Resource {
	GDCLASS(AudioEffect,Resource)
public:

	virtual Ref<AudioEffectInstance> instance()=0;
	AudioEffect();
};

#endif // AUDIOEFFECT_H