Functions
ayFX_InitBank
void ayFX_InitBank(
voidbank
)

Setup the ayFX replayer

Paramaters
bank

Pointer to the ayFX bank data

ayFX_PlayBank
u8 ayFX_PlayBank(
u8 id,
u8 prio
)

Play a ayFX sound

Paramaters
id

Sound index in the bank

prio

Priority of the sound (0-15). 0 is the highest priority.

Returns

Error number (if any). See <AYFX_ERROR>.

ayFX_Play
void ayFX_Play(
voiddata
)

Play a SFX directly from data pointer

Paramaters
file

Pointer to AFX file data

ayFX_Stop
void ayFX_Stop()

Stop the sound playback

ayFX_Mute
void ayFX_Mute()

Stop the sound playback and mute the channel

ayFX_Update
void ayFX_Update()

Play a frame of an ayFX stream

ayFX_SetMode
inline void ayFX_SetMode(
u8 mode
)

Set channel mode

Paramaters
mode

Playback mode. See <AYFX_MODE>.

ayFX_SetChannel
inline void ayFX_SetChannel(
u8 chan
)

Set the channel to use for sound playback

Paramaters
chan

Channel number for sound playback.

ayFX_GetChannel
inline u8 ayFX_GetChannel()

Get the channel used for sound playback

Return

Channel numberused for sound playback.

ayFX_GetBankNumber
inline u8 ayFX_GetBankNumber()

Get number of sound in the bank

Return

Number of sound in the bank

ayFX_SetFinishCB
inline void ayFX_SetFinishCB(
callback cb
)

Set the function to be call when a sound ended

Paramaters
cb

Function pointer to be called when sound end