mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
increase buffer sizes
This commit is contained in:
2
.vscode/.server-controller-port.log
vendored
2
.vscode/.server-controller-port.log
vendored
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"port": 13452,
|
||||
"time": 1754499532735,
|
||||
"time": 1758977942619,
|
||||
"version": "0.0.3"
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#define OUTPUT_DEVICE "FM_MPX"
|
||||
|
||||
#define BUFFER_SIZE 512
|
||||
#define BUFFER_SIZE 1024
|
||||
|
||||
#include "../io/audio.h"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "../filter/bs412.h"
|
||||
#include "../filter/gain_control.h"
|
||||
|
||||
#define BUFFER_SIZE 3072 // This defines how many samples to process at a time, because the loop here is this: get signal -> process signal -> output signal, and when we get signal we actually get BUFFER_SIZE of them
|
||||
#define BUFFER_SIZE 8192 // This defines how many samples to process at a time, because the loop here is this: get signal -> process signal -> output signal, and when we get signal we actually get BUFFER_SIZE of them
|
||||
|
||||
#include "../io/audio.h"
|
||||
|
||||
@@ -390,7 +390,7 @@ int setup_audio(FM95_Runtime* runtime, const FM95_DeviceNames dv_names, const FM
|
||||
pa_buffer_attr output_buffer_atr = {
|
||||
.maxlength = buffer_maxlength,
|
||||
.tlength = buffer_tlength_fragsize,
|
||||
.prebuf = 16
|
||||
.prebuf = 64
|
||||
};
|
||||
|
||||
int opentime_pulse_error;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define INPUT_DEVICE "SCA.monitor"
|
||||
#define OUTPUT_DEVICE "FM_MPX"
|
||||
|
||||
#define BUFFER_SIZE 1024
|
||||
#define BUFFER_SIZE 3072
|
||||
|
||||
#include "../io/audio.h"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#define buffer_maxlength 12288
|
||||
#define buffer_tlength_fragsize 12288
|
||||
#define buffer_prebuf 8
|
||||
#define buffer_prebuf 64
|
||||
|
||||
#include "../io/audio.h"
|
||||
#include "../lib/debug.h"
|
||||
|
||||
Reference in New Issue
Block a user