input modules: Increase chunk size to 4MB for all modules.

This reduces overhead and can slightly increase performance, depending
on the module.
This commit is contained in:
Uwe Hermann 2018-04-18 23:22:38 +02:00
parent 8bc2fa6d82
commit 9a4fd01af8
6 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@
#define DEFAULT_NUM_CHANNELS 8
#define DEFAULT_SAMPLERATE SR_MHZ(100)
#define CHUNK_SIZE (4 * 1024)
#define CHUNK_SIZE (4 * 1024 * 1024)
#define CHRONOVU_LA8_FILESIZE ((8 * 1024 * 1024) + 5)
struct context {

View File

@ -26,7 +26,7 @@
#define LOG_PREFIX "input/csv"
#define CHUNK_SIZE (128 * 1024)
#define CHUNK_SIZE (4 * 1024 * 1024)
/*
* The CSV input module has the following options:

View File

@ -31,7 +31,7 @@
#define LOG_PREFIX "input/raw_analog"
/* How many bytes at a time to process and send to the session bus. */
#define CHUNK_SIZE 4096
#define CHUNK_SIZE (4 * 1024 * 1024)
#define DEFAULT_NUM_CHANNELS 1
#define DEFAULT_SAMPLERATE 0

View File

@ -45,7 +45,7 @@
#define LOG_PREFIX "input/trace32_ad"
#define CHUNK_SIZE 10240
#define CHUNK_SIZE (4 * 1024 * 1024)
#define MAX_POD_COUNT 12
#define HEADER_SIZE 80

View File

@ -67,7 +67,7 @@
#define LOG_PREFIX "input/vcd"
#define CHUNK_SIZE (1024 * 1024)
#define CHUNK_SIZE (4 * 1024 * 1024)
struct context {
gboolean started;

View File

@ -31,7 +31,7 @@
#define LOG_PREFIX "input/wav"
/* How many bytes at a time to process and send to the session bus. */
#define CHUNK_SIZE 4096
#define CHUNK_SIZE (1 * 1024 * 1024 * sizeof(float))
/* Minimum size of header + 1 8-bit mono PCM sample. */
#define MIN_DATA_CHUNK_OFFSET 45