aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-04-13 02:00:35 +0200
committerdec05eba <dec05eba@protonmail.com>2024-04-13 02:00:35 +0200
commit24c13ceaab1ea2ef026d6d94558d703ab8bebe82 (patch)
treeb64e9fa7cc34df30bfed86a38765f39ca58f6703 /src/main.cpp
parentbc553692307a3005410b5b2f5c7e20a26aefdcfe (diff)
Use correct audio read timeout
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
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;