make a definition for buffer sizes

This commit is contained in:
2025-01-04 12:54:50 +01:00
parent 38b19d41bc
commit 0ff63fc08c
9 changed files with 44 additions and 45 deletions
+6 -7
View File
@@ -12,8 +12,7 @@
#include "../lib/filters.h"
#include "../lib/fm_modulator.h"
// Features
#include "features.h"
#include "options.h"
#define SAMPLE_RATE 192000
@@ -64,13 +63,13 @@ int main() {
};
pa_buffer_attr input_buffer_atr = {
.maxlength = 8192,
.fragsize = 8192
.maxlength = buffer_maxlength,
.fragsize = buffer_tlength_fragsize
};
pa_buffer_attr output_buffer_atr = {
.maxlength = 8192,
.tlength = 8192,
.prebuf = 0
.maxlength = buffer_maxlength,
.tlength = buffer_tlength_fragsize,
.prebuf = buffer_prebuf
};
printf("Connecting to input device... (%s)\n", INPUT_DEVICE);