29 #ifndef AUDIO_STREAM_H 30 #define AUDIO_STREAM_H 33 #include "servers/audio_server.h" 39 static void _bind_methods();
43 virtual void play(
float p_from_pos=0)=0;
44 virtual void stop()=0;
45 virtual bool is_playing()
const=0;
47 virtual void set_loop(
bool p_enable)=0;
48 virtual bool has_loop()
const=0;
50 virtual void set_loop_restart_time(
float p_time)=0;
52 virtual int get_loop_count()
const=0;
54 virtual float get_pos()
const=0;
55 virtual void seek_pos(
float p_time)=0;
57 virtual int mix(int16_t* p_bufer,
int p_frames)=0;
59 virtual float get_length()
const=0;
60 virtual String get_stream_name()
const=0;
62 virtual int get_channels()
const=0;
63 virtual int get_mix_rate()
const=0;
64 virtual int get_minimum_buffer_size()
const=0;
74 static void _bind_methods();
83 #endif // AUDIO_STREAM_H
Definition: audio_stream.h:68
Definition: reference.h:40
Definition: resource.h:89
Definition: audio_stream.h:35