adapt parameters for Behringer UMC202HD

This commit is contained in:
Sébastien Bourdeauducq 2025-01-09 12:13:28 +08:00
parent d4cb319ddb
commit dcb579fa3f

View File

@ -19,7 +19,7 @@
#define SND_BITS 24 #define SND_BITS 24
#define SND_PCHAN 2 #define SND_PCHAN 2
#define SND_RCHAN 2 #define SND_RCHAN 2
#define SND_RATE 44100 #define SND_RATE 192000
#define SND_BUFLEN 4096 #define SND_BUFLEN 4096
static std::atomic<bool> shutdown_threads; static std::atomic<bool> shutdown_threads;
@ -86,7 +86,7 @@ static void dsp_thread()
int32_t buf_in[SND_BUFLEN*SND_RCHAN]; int32_t buf_in[SND_BUFLEN*SND_RCHAN];
size_t buf_in_offset = sizeof(buf_in); size_t buf_in_offset = sizeof(buf_in);
FIFO<phase_t, 8> ftw_fifo[SND_PCHAN]; FIFO<phase_t, 16> ftw_fifo[SND_PCHAN];
int clipped_count = 0; int clipped_count = 0;
double peak_running = 0.0; double peak_running = 0.0;