mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2025-01-04 20:59:36 +01:00
40 lines
896 B
C++
40 lines
896 B
C++
#ifndef AUDIOEFFECTAMPLIFY_H
|
|
#define AUDIOEFFECTAMPLIFY_H
|
|
|
|
/* audio_effect_amplify.h */
|
|
|
|
|
|
#include "servers/audio/audio_effect.h"
|
|
|
|
class AudioEffectAmplify;
|
|
|
|
class AudioEffectAmplifyInstance : public AudioEffectInstance {
|
|
GDCLASS(AudioEffectAmplifyInstance, AudioEffectInstance);
|
|
friend class AudioEffectAmplify;
|
|
Ref<AudioEffectAmplify> base;
|
|
|
|
float mix_volume_db;
|
|
|
|
public:
|
|
virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
|
|
};
|
|
|
|
class AudioEffectAmplify : public AudioEffect {
|
|
GDCLASS(AudioEffectAmplify, AudioEffect);
|
|
|
|
friend class AudioEffectAmplifyInstance;
|
|
float volume_db;
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
Ref<AudioEffectInstance> instance();
|
|
void set_volume_db(float p_volume);
|
|
float get_volume_db() const;
|
|
|
|
AudioEffectAmplify();
|
|
};
|
|
|
|
#endif // AUDIOEFFECTAMPLIFY_H
|