Functions
WaveGame_GetVersion
inline u8 WaveGame_GetVersion()

Get the version of the MSX PICO WaveGame firmware Note that WaveGame version 1 is needed

Return

WaveGame version

0: Firmware v1.49 / v2.05 / v2.06
1: Firmware v1.50 / v2.07 and higher
WaveGame_Stop
inline void WaveGame_Stop()

Stop music (actually a 1-second fade out)

WaveGame_Fade
inline void WaveGame_Fade(
u8 sec
)

Fade out music in xxxx seconds

Parameters
sec
u8

Number of seconds to fade out (0-15)

WaveGame_PlayOnce
inline void WaveGame_PlayOnce(
u8 song
)

Play song xxxxxx once (for instance command 01000101 will play 05.wav once)

Parameters
song
u8

Song number to play (0-63)

WaveGame_PlayLoop
inline void WaveGame_PlayLoop(
u8 song
)

Play song xxxxxx in a loop (for instance command 10000101 will play 05.wav continuously)

Parameters
song
u8

Song number to play (0-63)

WaveGame_Play
inline void WaveGame_Play(
u8 song,
bool loop
)

Play song xxxxxx (for instance command 10000101 will play 05.wav continuously)

Parameters
song
u8

Song number to play (0-63)

loop
bool

true to play in a loop, false to play once

WaveGame_Pause
inline void WaveGame_Pause()

Toggle pause

WaveGame_PlayPause
inline void WaveGame_PlayPause()

Play pause.wav sound (use 11100000 to continue previous song)

WaveGame_Continue
inline void WaveGame_Continue()

Continue previous song with a 1-second fade in

WaveGame_StoreNext
inline void WaveGame_StoreNext()

Next command received will be temporarily stored and executed after the current song stops playing, or already has stopped

WaveGame_PlayNext
inline void WaveGame_PlayNext(
u8 song,
bool loop
)

Play song xxxxxx (for instance command 10000101 will play 05.wav continuously) when current music ends

Parameters
song
u8

Song number to play (0-63)

loop
bool

true to play in a loop, false to play once