diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-16 18:03:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-16 18:11:29 +0200 |
commit | 8c43a25543a4d956a5aac2375612625de09a7044 (patch) | |
tree | 798512948c67f77b307c125b46fbeaa66e3e923c /src/main.cpp | |
parent | 7e239c8aa289bbe71bcbb0bcc5908ca02cee4861 (diff) |
Remove audio compenstation
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index c716e47..9c6878a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2417,7 +2417,7 @@ int main(int argc, char **argv) { while(running) { void *sound_buffer; int sound_buffer_size = -1; - const double time_before_read_seconds = clock_get_monotonic_seconds(); + //const double time_before_read_seconds = clock_get_monotonic_seconds(); if(audio_device.sound_device.handle) { // TODO: use this instead of calculating time to read. But this can fluctuate and we dont want to go back in time double latency_seconds = 0.0; @@ -2425,9 +2425,9 @@ int main(int argc, char **argv) { } const bool got_audio_data = sound_buffer_size >= 0; - const double time_after_read_seconds = clock_get_monotonic_seconds(); - const double time_to_read_seconds = time_after_read_seconds - time_before_read_seconds; - const double this_audio_frame_time = time_after_read_seconds - paused_time_offset - time_to_read_seconds; + //const double time_after_read_seconds = clock_get_monotonic_seconds(); + //const double time_to_read_seconds = time_after_read_seconds - time_before_read_seconds; + const double this_audio_frame_time = clock_get_monotonic_seconds() - paused_time_offset; if(paused) { if(got_audio_data) |