Clean up latency related functions

This commit is contained in:
Juan Linietsky
2019-04-27 12:22:47 -03:00
parent e5ed112d69
commit af9bb0ea15
6 changed files with 29 additions and 27 deletions

View File

@@ -365,7 +365,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
float VideoStreamPlaybackTheora::get_time() const {
return time - AudioServer::get_singleton()->get_output_delay() - delay_compensation; //-((get_total())/(float)vi.rate);
return time - AudioServer::get_singleton()->get_output_latency() - delay_compensation; //-((get_total())/(float)vi.rate);
};
Ref<Texture> VideoStreamPlaybackTheora::get_texture() {