Function InitMusicPlayer

From Uzebox Wiki
Jump to: navigation, search
Prototype

void InitMusicPlayer(const struct PatchStruct *patchPointersParam);

Description

Initializes the music engine and defines the patch set to use to play song and sound effects. This function must be called before playing songs or effects.

Parameters
Returns

Void

Video Modes

All

Since

V1

Example:

#include "data/patches.inc"
#include "data/mariosong.inc"
...
InitMusicPlayer(mypatches);
StartSong(song_mario);