Class MusicControlPannel

Class Documentation

class MusicControlPannel

Music handler for manual mode.

Public Functions

int LoadMusic(const musdata &Mus)

loads music to the deck. doesn’t play music

Parameters:

Mus – Searched music

Returns:

int, miniaudio Error code.

bool CueMusic(const TITLE &title, const unsigned long long newPos)

Change playback position of the music.

Parameters:
  • title – the music title

  • newPos – the new playback position of the music

Returns:

true

Returns:

false

bool SetMusic(const TITLE &title, const bool onOff)

turn on, off the music

Parameters:
  • title – the music title

  • onOff – True is on, False is off

Returns:

true

Returns:

false

LOADED_LIST GetLoadedMusicList()

get music list on the deck

Returns:

LOADED_LIST

bool UnloadMusic(const TITLE &title)

unload music from deck. used to prevent memory leaks.

Parameters:

title – the target music title

Returns:

true

Returns:

false

bool GetPCMFrames(float *array, const unsigned long FrameSize)

gets decoded pcm frames

Parameters:
  • array – pcm array output

  • FrameSize – amount of frames

Returns:

true

Returns:

false

FXControlPannel *getFXHandle(const TITLE &title)

gets FX handler

Parameters:

title – the title of the music

Returns:

FXControlPannel*, the handler pointer

inline MusicControlPannel(const unsigned long FrameSize)
~MusicControlPannel()