Skip to content

AudioChannel

Struct

Source: AudioTypes.h

Description

Represents the internal state of a single audio channel.

Designed to be static and memory-efficient.

Properties

NameTypeDescription
sweepSamplesTotaluint32_tTotal samples for the sweep.
sweepSamplesRemaininguint32_tSamples remaining in the sweep.
sweepStartHzfloatStarting frequency in Hz (NOISE: LFSR clock).
sweepEndHzfloatEnding frequency in Hz (NOISE: LFSR clock).
sweepStartIncQ32uint32_tMelodic: Q32 phase inc start; NOISE: start period.
sweepEndIncQ32uint32_tMelodic: Q32 phase inc end; NOISE: end period.
sweepCurveSweepCurveActive sweep curve (may fallback to Linear).
sweepLogRatiofloatFPU Exponential: logf(endHz/startHz).
sweepLogStartQ16int32_tQ15 path Exponential: log2(start) in Q16.
sweepLogDeltaQ16int32_tQ15 path Exponential: log2(end/start) in Q16.

Methods

void reset()

Description:

Resets the channel to a clean disabled state.

Released under the MIT License.