61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
#ifndef GODOT_CPP_AUDIOSTREAMPLAYER2D_HPP
|
|
#define GODOT_CPP_AUDIOSTREAMPLAYER2D_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
|
|
#include <Node2D.hpp>
|
|
namespace godot {
|
|
|
|
class AudioStream;
|
|
|
|
class AudioStreamPlayer2D : public Node2D {
|
|
public:
|
|
|
|
static void *___get_type_tag();
|
|
static void *___get_base_type_tag();
|
|
static inline const char *___get_class_name() { return (const char *) "AudioStreamPlayer2D"; }
|
|
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
|
|
|
|
// constants
|
|
|
|
|
|
static AudioStreamPlayer2D *_new();
|
|
|
|
// methods
|
|
void set_stream(const Ref<AudioStream> stream);
|
|
Ref<AudioStream> get_stream() const;
|
|
void set_volume_db(const double volume_db);
|
|
double get_volume_db() const;
|
|
void set_pitch_scale(const double pitch_scale);
|
|
double get_pitch_scale() const;
|
|
void play(const double from_position = 0);
|
|
void seek(const double to_position);
|
|
void stop();
|
|
bool is_playing() const;
|
|
double get_playback_position();
|
|
void set_bus(const String bus);
|
|
String get_bus() const;
|
|
void set_autoplay(const bool enable);
|
|
bool is_autoplay_enabled();
|
|
void _set_playing(const bool enable);
|
|
bool _is_active() const;
|
|
void set_max_distance(const double pixels);
|
|
double get_max_distance() const;
|
|
void set_attenuation(const double curve);
|
|
double get_attenuation() const;
|
|
void set_area_mask(const int64_t mask);
|
|
int64_t get_area_mask() const;
|
|
void _bus_layout_changed();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |