nCine::AudioMixer namespace

Functions

auto Clamp01(float value) -> float
auto ClampToInt16(std::int32_t value) -> std::int16_t
Saturates a mixed sample into the 16 bits every software backend hands its hardware.
auto ComputeResampleStep(std::int32_t sourceFrequency, std::int32_t mixFrequency, float pitch) -> std::int64_t
Per-output-frame step through a source's samples, as a 32.32 fixed-point cursor.
void ComputeStereoGains(bool relative, const Vector3f& position, const Vector3f& listenerPosition, float sourceGain, float masterGain, float& leftGain, float& rightGain)
Per-voice stereo gains of a software-mixing backend.