libmsx
C library for MSX
Loading...
Searching...
No Matches
+ Collaboration diagram for Set a song in LA0 file to the decoder.:

Functions

void la0_set_bgm (uint8_t idx, MemFile *mf)
 MSX Set a song in the LA0 file to the LA0 audio decoder, as background music (BGM).
 
void la0_set_sfx (uint8_t idx, MemFile *mf)
 MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX).
 
void la0_set_sfx_with_priority (uint8_t idx, MemFile *mf, uint8_t priority)
 MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX).
 

Detailed Description

Function Documentation

◆ la0_set_bgm()

void la0_set_bgm ( uint8_t  idx,
MemFile mf 
)

MSX Set a song in the LA0 file to the LA0 audio decoder, as background music (BGM).

Parameters
idxSong number.
mfPointer to opened memory-file pointer.

◆ la0_set_sfx()

void la0_set_sfx ( uint8_t  idx,
MemFile mf 
)

MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX).

Parameters
idxSong number.
mfPointer to opened memory-file pointer.

◆ la0_set_sfx_with_priority()

void la0_set_sfx_with_priority ( uint8_t  idx,
MemFile mf,
uint8_t  priority 
)

MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX).

If a SFX is not being played, or if the given priority is higher than or equal to that of the currently playing SFX, the specified SFX will be played. Otherwise, nothing will be done.

Parameters
idxSong number.
mfPointer to opened memory-file pointer.
priorityPriority of the SFX.