29 #ifndef EVENT_PLAYER_H 30 #define EVENT_PLAYER_H 33 #include "scene/main/node.h" 34 #include "scene/resources/event_stream.h" 54 float channel_volume[MAX_CHANNELS];
56 void _set_play(
bool p_play);
57 bool _get_play()
const;
59 void _notification(
int p_what);
61 static void _bind_methods();
70 bool is_playing()
const;
72 void set_paused(
bool p_paused);
73 bool is_paused()
const;
75 void set_loop(
bool p_enable);
76 bool has_loop()
const;
78 void set_volume(
float p_vol);
79 float get_volume()
const;
81 void set_volume_db(
float p_db);
82 float get_volume_db()
const;
84 void set_pitch_scale(
float p_scale);
85 float get_pitch_scale()
const;
87 void set_tempo_scale(
float p_scale);
88 float get_tempo_scale()
const;
90 String get_stream_name()
const;
92 int get_loop_count()
const;
94 float get_pos()
const;
95 void seek_pos(
float p_time);
96 float get_length()
const;
97 void set_autoplay(
bool p_vol);
98 bool has_autoplay()
const;
100 void set_channel_volume(
int p_channel,
float p_volume);
101 float get_channel_volume(
int p_channel)
const;
103 float get_channel_last_note_time(
int p_channel)
const;
109 #endif // EVENT_PLAYER_H
Definition: event_player.h:35