Skip to content

Struct SYN_Audio_Config

ClassList > SYN_Audio_Config

Audio Playback Configuration.

  • #include <syn_audio.h>

Public Attributes

Type Name
int16_t * buf
size_t buf_capacity
uint8_t channels
void * ctx
size_t half_size
SYN_Audio_OutputFn out_fn
uint32_t sample_rate_hz

Public Attributes Documentation

variable buf

int16_t* SYN_Audio_Config::buf;

Caller-allocated PCM buffer (capacity >= 2 * half_size)


variable buf_capacity

size_t SYN_Audio_Config::buf_capacity;

Total PCM sample capacity of buffer


variable channels

uint8_t SYN_Audio_Config::channels;

Channel count (1 for mono, 2 for stereo)


variable ctx

void* SYN_Audio_Config::ctx;

User context passed to output callback


variable half_size

size_t SYN_Audio_Config::half_size;

Sample count per ping-pong buffer half


variable out_fn

SYN_Audio_OutputFn SYN_Audio_Config::out_fn;

Hardware transfer trigger callback


variable sample_rate_hz

uint32_t SYN_Audio_Config::sample_rate_hz;

Audio sample rate in Hz (e.g. 16000, 44100, 48000)



The documentation for this class was generated from the following file src/syntropic/audio/syn_audio.h