diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-13 02:00:35 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-13 02:00:35 +0200 |
commit | 24c13ceaab1ea2ef026d6d94558d703ab8bebe82 (patch) | |
tree | b64e9fa7cc34df30bfed86a38765f39ca58f6703 | |
parent | bc553692307a3005410b5b2f5c7e20a26aefdcfe (diff) |
Use correct audio read timeout
-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 a500304..5aacd8b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2418,7 +2418,7 @@ int main(int argc, char **argv) { void *sound_buffer; int sound_buffer_size = -1; if(audio_device.sound_device.handle) - sound_buffer_size = sound_device_read_next_chunk(&audio_device.sound_device, &sound_buffer, timeout_ms * 1000.0); + sound_buffer_size = sound_device_read_next_chunk(&audio_device.sound_device, &sound_buffer, timeout_sec); const bool got_audio_data = sound_buffer_size >= 0; |