From dcb579fa3feb76c47c8c089e1cabff3720611a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Thu, 9 Jan 2025 12:13:28 +0800 Subject: [PATCH] adapt parameters for Behringer UMC202HD --- sndlock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sndlock.cpp b/sndlock.cpp index 05d17a8..2e30c3e 100644 --- a/sndlock.cpp +++ b/sndlock.cpp @@ -19,7 +19,7 @@ #define SND_BITS 24 #define SND_PCHAN 2 #define SND_RCHAN 2 -#define SND_RATE 44100 +#define SND_RATE 192000 #define SND_BUFLEN 4096 static std::atomic shutdown_threads; @@ -86,7 +86,7 @@ static void dsp_thread() int32_t buf_in[SND_BUFLEN*SND_RCHAN]; size_t buf_in_offset = sizeof(buf_in); - FIFO ftw_fifo[SND_PCHAN]; + FIFO ftw_fifo[SND_PCHAN]; int clipped_count = 0; double peak_running = 0.0;