2018-02-11 14:50:01 +00:00
|
|
|
#ifndef GODOT_CPP_AUDIOEFFECTFILTER_HPP
|
|
|
|
#define GODOT_CPP_AUDIOEFFECTFILTER_HPP
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
|
|
#include <core/Ref.hpp>
|
2018-05-13 12:39:32 +00:00
|
|
|
#include "AudioEffectFilter.hpp"
|
2018-02-11 14:50:01 +00:00
|
|
|
|
2018-05-13 12:39:32 +00:00
|
|
|
#include "AudioEffect.hpp"
|
2018-02-11 14:50:01 +00:00
|
|
|
namespace godot {
|
|
|
|
|
|
|
|
|
|
|
|
class AudioEffectFilter : public AudioEffect {
|
|
|
|
public:
|
|
|
|
|
|
|
|
static void *___get_type_tag();
|
|
|
|
static void *___get_base_type_tag();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "AudioEffectFilter"; }
|
|
|
|
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o); }
|
|
|
|
|
|
|
|
// enums
|
|
|
|
enum FilterDB {
|
|
|
|
FILTER_18DB = 2,
|
|
|
|
FILTER_6DB = 0,
|
|
|
|
FILTER_24DB = 3,
|
|
|
|
FILTER_12DB = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
// constants
|
|
|
|
|
|
|
|
|
|
|
|
static AudioEffectFilter *_new();
|
|
|
|
|
|
|
|
// methods
|
|
|
|
void set_cutoff(const double freq);
|
|
|
|
double get_cutoff() const;
|
|
|
|
void set_resonance(const double amount);
|
|
|
|
double get_resonance() const;
|
|
|
|
void set_gain(const double amount);
|
|
|
|
double get_gain() const;
|
|
|
|
void set_db(const int64_t amount);
|
|
|
|
AudioEffectFilter::FilterDB get_db() const;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|