29 #ifndef VIDEO_STREAM_H 30 #define VIDEO_STREAM_H 32 #include "audio_stream_resampled.h" 33 #include "scene/resources/texture.h" 41 static void _bind_methods();
45 typedef int (*AudioMixCallback)(
void* p_udata,
const int16_t *p_data,
int p_frames);
47 virtual void stop()=0;
48 virtual void play()=0;
50 virtual bool is_playing()
const=0;
52 virtual void set_paused(
bool p_paused)=0;
53 virtual bool is_paused(
bool p_paused)
const=0;
55 virtual void set_loop(
bool p_enable)=0;
56 virtual bool has_loop()
const=0;
58 virtual float get_length()
const=0;
60 virtual float get_pos()
const=0;
61 virtual void seek_pos(
float p_time)=0;
63 virtual void set_audio_track(
int p_idx) =0;
68 virtual void update(
float p_delta)=0;
70 virtual void set_mix_callback(AudioMixCallback p_callback,
void *p_userdata)=0;
71 virtual int get_channels()
const=0;
72 virtual int get_mix_rate()
const=0;
85 virtual void set_audio_track(
int p_track)=0;
Definition: video_stream.h:78
Definition: resource.h:89
Definition: video_stream.h:36