diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-16 20:47:26 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-16 20:47:26 +0200 |
commit | 38cb7f04aed3106c88548f4de24eaa92f900ff3b (patch) | |
tree | b1ec3cd6ec27293c8a81602af7a14953fe158286 | |
parent | 4695d954d5d5bf3813783eb7f4d8b4bc12545d26 (diff) |
Audio delay, change depending on fps
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |