From 38cb7f04aed3106c88548f4de24eaa92f900ff3b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 16 Apr 2024 20:47:26 +0200 Subject: Audio delay, change depending on fps --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 439c8fb..cc00f05 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2383,7 +2383,7 @@ int main(int argc, char **argv) { } memset(empty_audio, 0, audio_buffer_size); - const double audio_startup_time_seconds = 0.080833; + const double audio_startup_time_seconds = std::max(0.0, 0.089166 - target_fps); for(AudioTrack &audio_track : audio_tracks) { for(AudioDevice &audio_device : audio_track.audio_devices) { -- cgit v1.2.3