summaryrefslogtreecommitdiff
path: root/servers/audio/effects/audio_effect_compressor.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
commit5dbf1809c6e3e905b94b8764e99491e608122261 (patch)
tree5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /servers/audio/effects/audio_effect_compressor.h
parent45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff)
A Whole New World (clang-format edition)
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
Diffstat (limited to 'servers/audio/effects/audio_effect_compressor.h')
-rw-r--r--servers/audio/effects/audio_effect_compressor.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/servers/audio/effects/audio_effect_compressor.h b/servers/audio/effects/audio_effect_compressor.h
index 3988ad1526..34f80348db 100644
--- a/servers/audio/effects/audio_effect_compressor.h
+++ b/servers/audio/effects/audio_effect_compressor.h
@@ -29,30 +29,27 @@
#ifndef AUDIOEFFECTCOMPRESSOR_H
#define AUDIOEFFECTCOMPRESSOR_H
-
#include "servers/audio/audio_effect.h"
class AudioEffectCompressor;
class AudioEffectCompressorInstance : public AudioEffectInstance {
- GDCLASS(AudioEffectCompressorInstance,AudioEffectInstance)
-friend class AudioEffectCompressor;
+ GDCLASS(AudioEffectCompressorInstance, AudioEffectInstance)
+ friend class AudioEffectCompressor;
Ref<AudioEffectCompressor> base;
- float rundb,averatio,runratio,runmax,maxover,gr_meter;
+ float rundb, averatio, runratio, runmax, maxover, gr_meter;
int current_channel;
-public:
-
- void set_current_channel(int p_channel) { current_channel=p_channel; }
- virtual void process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count);
+public:
+ void set_current_channel(int p_channel) { current_channel = p_channel; }
+ virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
};
-
class AudioEffectCompressor : public AudioEffect {
- GDCLASS(AudioEffectCompressor,AudioEffect)
+ GDCLASS(AudioEffectCompressor, AudioEffect)
-friend class AudioEffectCompressorInstance;
+ friend class AudioEffectCompressorInstance;
float treshold;
float ratio;
float gain;
@@ -61,16 +58,13 @@ friend class AudioEffectCompressorInstance;
float mix;
StringName sidechain;
-
protected:
- void _validate_property(PropertyInfo& property) const;
+ void _validate_property(PropertyInfo &property) const;
static void _bind_methods();
-public:
-
+public:
Ref<AudioEffectInstance> instance();
-
void set_treshold(float p_treshold);
float get_treshold() const;
@@ -89,7 +83,7 @@ public:
void set_mix(float p_mix);
float get_mix() const;
- void set_sidechain(const StringName& p_sidechain);
+ void set_sidechain(const StringName &p_sidechain);
StringName get_sidechain() const;
AudioEffectCompressor();