Skip to content

Struct SYN_Audio_Mixer_Channel

ClassList > SYN_Audio_Mixer_Channel

State for a single mixer input channel.

  • #include <syn_audio_mixer.h>

Public Attributes

Type Name
bool active
const int16_t * buf
bool loop
size_t pos
size_t sample_count
uint16_t volume_q15

Public Attributes Documentation

variable active

bool SYN_Audio_Mixer_Channel::active;

True if channel is actively playing


variable buf

const int16_t* SYN_Audio_Mixer_Channel::buf;

Pointer to PCM sample array


variable loop

bool SYN_Audio_Mixer_Channel::loop;

True to loop playback continuously


variable pos

size_t SYN_Audio_Mixer_Channel::pos;

Current read index


variable sample_count

size_t SYN_Audio_Mixer_Channel::sample_count;

Total sample count in buffer


variable volume_q15

uint16_t SYN_Audio_Mixer_Channel::volume_q15;

Channel gain (Q15 fixed-point, 32768 = 1.0)



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