shithub: ft2-clone

ref: 0f1e430bbe98346c443391adc3661e99b65114cd
dir: /src/mixer/ft2_center_mix.h/

View raw version
#pragma once

#include <stdint.h>
#include "../ft2_audio.h"

// no volume ramping

// 8-bit
void centerMix8bNoLoop(voice_t *v, uint32_t numSamples);
void centerMix8bLoop(voice_t *v, uint32_t numSamples);
void centerMix8bBidiLoop(voice_t *v, uint32_t numSamples);
void centerMix8bNoLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bBidiLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bNoLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bBidiLoopLIntrp(voice_t *v, uint32_t numSamples);

// 16-bit
void centerMix16bNoLoop(voice_t *v, uint32_t numSamples);
void centerMix16bLoop(voice_t *v, uint32_t numSamples);
void centerMix16bBidiLoop(voice_t *v, uint32_t numSamples);
void centerMix16bNoLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bBidiLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bNoLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bBidiLoopLIntrp(voice_t *v, uint32_t numSamples);

// volume ramping

// 8-bit
void centerMix8bRampNoLoop(voice_t *v, uint32_t numSamples);
void centerMix8bRampLoop(voice_t *v, uint32_t numSamples);
void centerMix8bRampBidiLoop(voice_t *v, uint32_t numSamples);
void centerMix8bRampNoLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bRampLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bRampBidiLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bRampNoLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bRampLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix8bRampBidiLoopLIntrp(voice_t *v, uint32_t numSamples);

// 16bit
void centerMix16bRampNoLoop(voice_t *v, uint32_t numSamples);
void centerMix16bRampLoop(voice_t *v, uint32_t numSamples);
void centerMix16bRampBidiLoop(voice_t *v, uint32_t numSamples);
void centerMix16bRampNoLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bRampLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bRampBidiLoopCIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bRampNoLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bRampLoopLIntrp(voice_t *v, uint32_t numSamples);
void centerMix16bRampBidiLoopLIntrp(voice_t *v, uint32_t numSamples);