2010-11-13 23:34:53 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* SettingsPrompts
|
|
|
|
* USB Loader GX 2009
|
|
|
|
*
|
|
|
|
* Backgroundmusic
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _BGM_H_
|
|
|
|
#define _BGM_H_
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "gui_sound.h"
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
ONCE = 0, LOOP, RANDOM_BGM, DIR_LOOP
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class GuiBGM: public GuiSound
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
GuiBGM(const u8 *s, int l, int v);
|
|
|
|
virtual ~GuiBGM();
|
|
|
|
bool Load(const char *path);
|
|
|
|
bool LoadStandard();
|
|
|
|
bool ParsePath(const char * folderpath);
|
|
|
|
bool PlayNext();
|
|
|
|
bool PlayPrevious();
|
|
|
|
bool PlayRandom();
|
|
|
|
void UpdateState();
|
|
|
|
protected:
|
|
|
|
void AddEntrie(const char * filename);
|
|
|
|
void ClearList();
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
int currentPlaying;
|
|
|
|
char * currentPath;
|
|
|
|
std::vector<char *> PlayList;
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|