usbloadergx/source/libwiigui/gui_bgm.h

43 lines
980 B
C
Raw Normal View History

/****************************************************************************
* SettingsPrompts
* USB Loader GX 2009
*
* Backgroundmusic
***************************************************************************/
#ifndef _BGM_H_
#define _BGM_H_
#include "libwiigui/gui.h"
enum
{
2010-09-24 02:48:03 +02:00
ONCE = 0, LOOP, RANDOM_BGM, DIR_LOOP
};
2010-09-24 02:48:03 +02:00
class GuiBGM: public GuiSound
{
public:
2010-09-24 02:48:03 +02:00
GuiBGM(const u8 *s, int l, int v);
~GuiBGM();
2010-09-24 02:48:03 +02:00
bool Load(const char *path);
bool LoadStandard();
2010-09-24 02:48:03 +02:00
bool ParsePath(const char * folderpath);
bool PlayNext();
bool PlayPrevious();
bool PlayRandom();
2010-09-24 02:48:03 +02:00
void SetLoop(bool l);
void SetLoop(int l);
void UpdateState();
protected:
2010-09-24 02:48:03 +02:00
void AddEntrie(const char * filename);
void ClearList();
int currentPlaying;
int loopMode;
char * currentPath;
std::vector<char *> PlayList;
};
#endif