OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
Echo Effects

Functions

void audioDisableEcho (void)
 Disable echo for all voices.
void audioEnableEcho (u8 voiceMask)
 Enable echo for specific voices.
void audioSetEcho (u8 delay, s8 feedback, s8 volumeL, s8 volumeR)
 Configure echo parameters.
void audioSetEchoFilter (const s8 fir[8])
 Set FIR filter coefficients for echo.

Detailed Description

Function Documentation

◆ audioDisableEcho()

void audioDisableEcho ( void )

Disable echo for all voices.

◆ audioEnableEcho()

void audioEnableEcho ( u8 voiceMask)

Enable echo for specific voices.

Parameters
voiceMaskBitmask (bit 0 = voice 0, etc.)

◆ audioSetEcho()

void audioSetEcho ( u8 delay,
s8 feedback,
s8 volumeL,
s8 volumeR )

Configure echo parameters.

Parameters
delayEcho delay 1-7 (delay_ms = value * 16; values above 7 are clamped — the ARAM map reserves 14 KB max for the echo ring, keeping 46 KB for samples)
feedbackFeedback amount (-128 to 127)
volumeLLeft echo volume (-128 to 127)
volumeRRight echo volume (-128 to 127)

Reconfiguration clears the whole echo ring before re-enabling echo writes (~9 ms per delay unit) — call at scene setup, not per frame. Call this BEFORE audioEnableEcho().

◆ audioSetEchoFilter()

void audioSetEchoFilter ( const s8 fir[8])

Set FIR filter coefficients for echo.

Parameters
firArray of 8 signed coefficients