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
|
|
|
|
{
|
|
|
|
ONCE = 0,
|
|
|
|
LOOP,
|
|
|
|
RANDOM_BGM,
|
|
|
|
DIR_LOOP
|
|
|
|
};
|
|
|
|
|
|
|
|
class GuiBGM : public GuiSound
|
|
|
|
{
|
|
|
|
public:
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiBGM( const u8 *s, int l, int v );
|
2010-02-15 00:22:52 +01:00
|
|
|
~GuiBGM();
|
2010-09-19 01:16:05 +02:00
|
|
|
bool Load( const char *path );
|
2010-02-15 00:22:52 +01:00
|
|
|
bool LoadStandard();
|
2010-09-19 01:16:05 +02:00
|
|
|
bool ParsePath( const char * folderpath );
|
2010-02-15 00:22:52 +01:00
|
|
|
bool PlayNext();
|
|
|
|
bool PlayPrevious();
|
|
|
|
bool PlayRandom();
|
2010-09-19 01:16:05 +02:00
|
|
|
void SetLoop( bool l );
|
|
|
|
void SetLoop( int l );
|
2010-02-15 00:22:52 +01:00
|
|
|
void UpdateState();
|
|
|
|
protected:
|
2010-09-19 01:16:05 +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
|