2010-02-15 00:22:52 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* 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-02-15 00:22:52 +01:00
|
|
|
};
|
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
class GuiBGM: public GuiSound
|
2010-02-15 00:22:52 +01:00
|
|
|
{
|
|
|
|
public:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiBGM(const u8 *s, int l, int v);
|
2010-02-15 00:22:52 +01:00
|
|
|
~GuiBGM();
|
2010-09-24 02:48:03 +02:00
|
|
|
bool Load(const char *path);
|
2010-02-15 00:22:52 +01:00
|
|
|
bool LoadStandard();
|
2010-09-24 02:48:03 +02:00
|
|
|
bool ParsePath(const char * folderpath);
|
2010-02-15 00:22:52 +01:00
|
|
|
bool PlayNext();
|
|
|
|
bool PlayPrevious();
|
|
|
|
bool PlayRandom();
|
2010-09-24 02:48:03 +02:00
|
|
|
void SetLoop(bool l);
|
|
|
|
void SetLoop(int l);
|
2010-02-15 00:22:52 +01:00
|
|
|
void UpdateState();
|
|
|
|
protected:
|
2010-09-24 02:48:03 +02:00
|
|
|
void AddEntrie(const char * filename);
|
2010-02-15 00:22:52 +01:00
|
|
|
void ClearList();
|
|
|
|
|
|
|
|
int currentPlaying;
|
|
|
|
int loopMode;
|
|
|
|
char * currentPath;
|
|
|
|
std::vector<char *> PlayList;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|