0
1
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:
2025-09-27 15:21:04 +02:00
parent 219b2a47e0
commit a83c813ff4
5 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
{
"port": 13452,
"time": 1754499532735,
"time": 1758977942619,
"version": "0.0.3"
}

View File

@@ -18,7 +18,7 @@
#define OUTPUT_DEVICE "FM_MPX"
#define BUFFER_SIZE 512
#define BUFFER_SIZE 1024
#include "../io/audio.h"

View File

@@ -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;

View File

@@ -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"

View File

@@ -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"