| void AKG_Init( |
| ) |
Initialize a music and start playback
| data | Pointer to the music data (data must be export to be replayed at this exact location) Check Arkos Tracker 2 documentation for more details: https://www.julien-nevo.com/arkostracker |
| num | Sub-music number if the AKG contain several musics (otherwise set to 0) |
Check if a music is currently playing
FALSE if no music is playing
Stop current music playback
Decode a music frame and update the PSG (must be called once each frame)
TRUE if end of music have been reached
| u8 AKG_InitSFX( |
| ) |
Initialize sound effects. It MUST be called at any time before a first sound effect is triggered. It doesn't matter whether a song is playing or not, or even if AKG_Init has been initialized.
| data | Address to the sound effects data. |
Number of SFX in the package
| void AKG_PlaySFX( |
| ) |
Plays a sound effect. If a previous one was already playing on the same channel, it is replaced. This does not actually plays the sound effect, but programs its playing.
| sfx | Sound effect number (>0!). |
| chan | The channel where to play the sound effect (0, 1, 2). |
| vol | Inverted volume (0 = full volume, 16 = no sound). Hardware sounds are also lowered. |
| void AKG_StopSFX( |
| ) |
Stops a sound effect. Nothing happens if there was no sound effect.
| chan | The channel where to stop the sound effect (0, 1, 2). |