Functions
MSXMusic_Initialize
u8 MSXMusic_Initialize()

Initialize MSX-Music module

Return

MSXMUSIC_NOTFOUND if no MSX-Music chip found MSXMUSIC_INTERNAL if an internal MSX-Music chip is found MSXMUSIC_EXTERNAL if an external MSX-Music chip (FM-PAC)

MSXMusic_Detect
u8 MSXMusic_Detect()

Search for MSX-Music (YM2413) chip

Return

MSXMUSIC_NOTFOUND if no MSX-Music chip found MSXMUSIC_INTERNAL if an internal MSX-Music chip is found MSXMUSIC_EXTERNAL if an external MSX-Music chip (FM-PAC)

MSXMusic_GetSlotId
inline u8 MSXMusic_GetSlotId()

Get the Slot ID of the first MSX-Music chip found MSXMusic_Detect or MSXMusic_Initialize must be called first

Return

Slot ID if found or SLOT_NOTFOUND otherwise

MSXMusic_SetRegister
void MSXMusic_SetRegister(
u8 reg,
u8 value
)

Set MSX-Music register value

Parameters
reg
u8

Register to set

value
u8

Value to set

MSXMusic_GetRegister
u8 MSXMusic_GetRegister(
u8 reg
)

Get MSX-Music register value

Parameters
reg
u8

Register to get

Return

Value of the register

MSXMusic_Mute
void MSXMusic_Mute()

Mute MSX-Music sound

MSXMusic_Resume
void MSXMusic_Resume()

Resume MSX-Music sound