2023-12-14 21:54:22 +01:00
|
|
|
#ifndef AUDIOEFFECTPANNER_H
|
|
|
|
#define AUDIOEFFECTPANNER_H
|
2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
/* audio_effect_panner.h */
|
2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
|
|
|
|
#include "servers/audio/audio_effect.h"
|
|
|
|
|
|
|
|
class AudioEffectPanner;
|
|
|
|
|
|
|
|
class AudioEffectPannerInstance : public AudioEffectInstance {
|
|
|
|
GDCLASS(AudioEffectPannerInstance, AudioEffectInstance);
|
|
|
|
friend class AudioEffectPanner;
|
|
|
|
Ref<AudioEffectPanner> base;
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
|
|
|
|
};
|
|
|
|
|
|
|
|
class AudioEffectPanner : public AudioEffect {
|
|
|
|
GDCLASS(AudioEffectPanner, AudioEffect);
|
|
|
|
|
|
|
|
friend class AudioEffectPannerInstance;
|
|
|
|
float pan;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
public:
|
|
|
|
Ref<AudioEffectInstance> instance();
|
|
|
|
void set_pan(float p_cpanume);
|
|
|
|
float get_pan() const;
|
|
|
|
|
|
|
|
AudioEffectPanner();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUDIOEFFECTPANNER_H
|