From 24c13ceaab1ea2ef026d6d94558d703ab8bebe82 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 13 Apr 2024 02:00:35 +0200 Subject: Use correct audio read timeout --- 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 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; -- cgit v1.2.3