Fixed theora playback. Removed theoraplayer.
Still need to get proper audio output latency in some platforms.
This commit is contained in:
@ -920,7 +920,7 @@ float AudioServerSW::get_event_voice_global_volume_scale() const {
|
||||
|
||||
double AudioServerSW::get_output_delay() const {
|
||||
|
||||
return _output_delay;
|
||||
return _output_delay+AudioDriverSW::get_singleton()->get_latency();
|
||||
}
|
||||
|
||||
double AudioServerSW::get_mix_time() const {
|
||||
|
||||
@ -256,6 +256,8 @@ public:
|
||||
virtual void unlock()=0;
|
||||
virtual void finish()=0;
|
||||
|
||||
virtual float get_latency() { return 0; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -164,6 +164,7 @@ void AudioServer::_bind_methods() {
|
||||
BIND_CONSTANT( REVERB_HALL );
|
||||
|
||||
GLOBAL_DEF("audio/stream_buffering_ms",500);
|
||||
GLOBAL_DEF("audio/video_delay_compensation_ms",300);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user