Struct 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¶
Caller-allocated PCM buffer (capacity >= 2 * half_size)
variable buf_capacity¶
Total PCM sample capacity of buffer
variable channels¶
Channel count (1 for mono, 2 for stereo)
variable ctx¶
User context passed to output callback
variable half_size¶
Sample count per ping-pong buffer half
variable out_fn¶
Hardware transfer trigger callback
variable 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