40 #ifndef _audiomusicplayer_cpp
41 #define _audiomusicplayer_cpp
45 #include "Audio/sound.h"
47 #include "exception.h"
54 : MusicPlaylist(NULL),
69 std::list<Audio::iSound*>::iterator MusicPlayer::GetIteratorToSong(
iSound* Song)
71 for( std::list< Audio::iSound* >::iterator it = MusicPlaylist->begin() ; it != MusicPlaylist->end() ; ++it )
79 return MusicPlaylist->end();
89 else CurrSong = *(MusicPlaylist->begin());
108 std::list<iSound*>::iterator SongIt = this->GetIteratorToSong(CurrSong);
110 CurrSong = (*SongIt);
111 if(Playing && !ManualStop)
117 std::list<iSound*>::iterator SongIt = GetIteratorToSong(CurrSong);
119 CurrSong = (*SongIt);
120 if(Playing && !ManualStop)
126 for( std::list< Audio::iSound* >::iterator it = MusicPlaylist->begin() ; it != MusicPlaylist->end() ; ++it )
131 if(Playing && !ManualStop)
171 EOPShuffle = Shuffle;
181 return MusicPlaylist;
188 std::list<Audio::iSound*>::iterator SongIt = this->GetIteratorToSong(CurrSong);
189 std::list<Audio::iSound*>::iterator NextSong = SongIt;
193 if(NextSong == MusicPlaylist->end())
197 if(EOPShuffle) MusicPlaylist->
Shuffle();
198 CurrSong = *(MusicPlaylist->begin());