29 #ifndef VIDEO_PLAYER_H 30 #define VIDEO_PLAYER_H 32 #include "scene/resources/video_stream.h" 33 #include "scene/gui/control.h" 34 #include "servers/audio/audio_rb_resampler.h" 40 struct InternalStream :
public AudioServer::AudioStream {
42 virtual int get_channel_count()
const;
43 virtual void set_mix_rate(
int p_rate);
44 virtual bool mix(int32_t *p_buffer,
int p_frames);
45 virtual void update();
49 InternalStream internal_stream;
53 int sp_get_channel_count()
const;
54 void sp_set_mix_rate(
int p_rate);
55 bool sp_mix(int32_t *p_buffer,
int p_frames);
64 AudioRBResampler resampler;
69 double last_audio_time;
76 static int _audio_mix_callback(
void* p_udata,
const int16_t *p_data,
int p_frames);
81 static void _bind_methods();
82 void _notification(
int p_notification);
86 Size2 get_minimum_size()
const;
87 void set_expand(
bool p_expand);
88 bool has_expand()
const;
98 bool is_playing()
const;
100 void set_paused(
bool p_paused);
101 bool is_paused()
const;
103 void set_volume(
float p_vol);
104 float get_volume()
const;
106 void set_volume_db(
float p_db);
107 float get_volume_db()
const;
109 String get_stream_name()
const;
110 float get_stream_pos()
const;
112 void set_autoplay(
bool p_vol);
113 bool has_autoplay()
const;
115 void set_audio_track(
int p_track);
116 int get_audio_track()
const;
118 void set_buffering_msec(
int p_msec);
119 int get_buffering_msec()
const;
Definition: video_player.h:36