mirror of
https://github.com/ApfelTeeSaft/gameBase.git
synced 2026-08-26 19:23:30 +00:00
clearPlaylist is now public
This commit is contained in:
@@ -54,6 +54,7 @@ namespace gameBase{
|
|||||||
delete track.soundObj;
|
delete track.soundObj;
|
||||||
|
|
||||||
currentPlaylistTracks.clear();
|
currentPlaylistTracks.clear();
|
||||||
|
originalPlaylist.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoundManager::play(vector<string> playlist, int volume, int trackDelay, bool loop, bool shuffle){
|
void SoundManager::play(vector<string> playlist, int volume, int trackDelay, bool loop, bool shuffle){
|
||||||
|
|||||||
+1
-1
@@ -16,6 +16,7 @@ namespace gameBase{
|
|||||||
static SoundManager* getSingleton();
|
static SoundManager* getSingleton();
|
||||||
void update();
|
void update();
|
||||||
void play(std::vector<std::string>, int, int, bool, bool);
|
void play(std::vector<std::string>, int, int, bool, bool);
|
||||||
|
void clearPlaylist();
|
||||||
private:
|
private:
|
||||||
struct Track{
|
struct Track{
|
||||||
std::string path = "";
|
std::string path = "";
|
||||||
@@ -24,7 +25,6 @@ namespace gameBase{
|
|||||||
Track(std::string);
|
Track(std::string);
|
||||||
};
|
};
|
||||||
SoundManager(){}
|
SoundManager(){}
|
||||||
void clearPlaylist();
|
|
||||||
|
|
||||||
int currentTrackId = 0, volume, trackDelay;
|
int currentTrackId = 0, volume, trackDelay;
|
||||||
bool loop, shuffle;
|
bool loop, shuffle;
|
||||||
|
|||||||
Reference in New Issue
Block a user