// SPDX-License-Identifier: GPL-3.0-only // Recording parameters. Defaults: 16 kHz mono 16-bit PCM (see state/DECISIONS.md). #pragma once #define OSC_SAMPLE_RATE 16000 #define OSC_BITS_PER_SAMPLE 16 #define OSC_CHANNELS 1 // Directory on the SD card for recordings + sidecar metadata. #define OSC_REC_DIR "/recordings" // Capture chunk size (bytes) pumped from the mic to the WAV file each update(). // 4096 bytes = 2048 samples = 128 ms at 16 kHz mono 16-bit. Sits in a stack buffer. #define OSC_CHUNK_BYTES 4096