summaryrefslogtreecommitdiff
path: root/servers/audio/effects/audio_effect_stereo_enhance.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/audio/effects/audio_effect_stereo_enhance.h')
-rw-r--r--servers/audio/effects/audio_effect_stereo_enhance.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/servers/audio/effects/audio_effect_stereo_enhance.h b/servers/audio/effects/audio_effect_stereo_enhance.h
index 5eef8a33b2..21331692e9 100644
--- a/servers/audio/effects/audio_effect_stereo_enhance.h
+++ b/servers/audio/effects/audio_effect_stereo_enhance.h
@@ -29,38 +29,34 @@
#ifndef AUDIOEFFECTSTEREOENHANCE_H
#define AUDIOEFFECTSTEREOENHANCE_H
-
#include "servers/audio/audio_effect.h"
class AudioEffectStereoEnhance;
class AudioEffectStereoEnhanceInstance : public AudioEffectInstance {
- GDCLASS(AudioEffectStereoEnhanceInstance,AudioEffectInstance)
-friend class AudioEffectStereoEnhance;
+ GDCLASS(AudioEffectStereoEnhanceInstance, AudioEffectInstance)
+ friend class AudioEffectStereoEnhance;
Ref<AudioEffectStereoEnhance> base;
enum {
- MAX_DELAY_MS=50
+ MAX_DELAY_MS = 50
};
float *delay_ringbuff;
unsigned int ringbuff_pos;
unsigned int ringbuff_mask;
-
public:
-
- virtual void process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count);
+ virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
~AudioEffectStereoEnhanceInstance();
};
-
class AudioEffectStereoEnhance : public AudioEffect {
- GDCLASS(AudioEffectStereoEnhance,AudioEffect)
+ GDCLASS(AudioEffectStereoEnhance, AudioEffect)
-friend class AudioEffectStereoEnhanceInstance;
+ friend class AudioEffectStereoEnhanceInstance;
float volume_db;
float pan_pullout;
@@ -68,11 +64,9 @@ friend class AudioEffectStereoEnhanceInstance;
float surround;
protected:
-
static void _bind_methods();
-public:
-
+public:
Ref<AudioEffectInstance> instance();
void set_pan_pullout(float p_amount);