31 float soft_vol_up_latency;
32 float soft_vol_down_latency;
34 std::list< int >playingSource;
36 bool LoadMusic(
const char *
file );
39 typedef std::vector< std::string > SongList;
40 typedef std::map< std::string, std::string >PragmaList;
58 std::string&operator[](
size_t index )
62 const std::string&operator[](
size_t index )
const
66 void push_back(
const std::string &s )
71 bool haspragma(
const std::string &name )
const
73 return pragmas.find( name ) != pragmas.end();
75 const std::string& pragma(
const std::string &name,
const std::string &def )
const
77 PragmaList::const_iterator it = pragmas.find( name );
78 if ( it != pragmas.end() )
85 std::vector< PlayList >playlist;
94 void GotoSong(
int whichlist,
int whichsong,
bool skip,
int layer = -1 );
96 static int Addlist( std::string listfile );
97 static void SetLoops(
int numloops,
int layer = -1 );
98 static void ChangeVolume(
float inc = 0,
int layer = -1 );
100 static void Skip(
int layer = -1 );
101 static void Stop(
int layer = -1 );
102 static void SkipRandSong(
int whichlist,
int layer = -1 );
105 static void GotoSong( std::string mus,
int layer = -1 );
111 static void SetVolume(
float vol,
int layer = -1,
bool hardware =
false,
float latency_override = -1 );
112 static void Mute(
bool mute =
true,
int layer = -1 );
117 void _GotoSong( std::string mus );
118 int _Addlist( std::string listfile );
119 void _SetVolume(
float vol = 0,
bool hardware =
false,
float latency_override = -1 );
120 void _SkipRandSong(
int whichlist,
int layer = -1 );
121 void _SkipRandList(
int layer = -1 );
122 void _Skip(
int layer = -1 );
125 std::list< std::string >recent_songs;
127 int SelectTracks(
int layer = -1 );
137 HANDLE musicinfo_mutex;
140 pthread_mutex_t musicinfo_mutex;
143 int thread_initialized;
144 volatile bool moredata;
145 volatile bool music_loaded;
146 volatile bool killthread;
147 volatile bool threadalive;
148 volatile bool music_loading;
150 struct AUDSoundProperties *music_load_info;
151 vector< std::string >music_load_list;
153 void _LoadLastSongAsync();
155 std::string cur_song_file;