mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Add original music to login rotation and zone playlists
11 original tracks in assets/Original Music/ now play on the login screen and in thematically matched zones across Eastern Kingdoms and Kalimdor. Added crossfadeToFile to MusicManager for local file playback during zone transitions. New zones: Tirisfal, Undercity, Barrens, STV, Duskwood, Burning Steppes, Searing Gorge, Ironforge, Loch Modan, Orgrimmar, Durotar, Mulgore, Thunder Bluff, Darkshore, Teldrassil, Darnassus.
This commit is contained in:
parent
8c21e89ea3
commit
6dff088361
16 changed files with 392 additions and 17 deletions
|
|
@ -22,6 +22,7 @@ public:
|
|||
void playFilePath(const std::string& filePath, bool loop = true);
|
||||
void stopMusic(float fadeMs = 2000.0f);
|
||||
void crossfadeTo(const std::string& mpqPath, float fadeMs = 3000.0f);
|
||||
void crossfadeToFile(const std::string& filePath, float fadeMs = 3000.0f);
|
||||
void update(float deltaTime);
|
||||
void setVolume(int volume);
|
||||
int getVolume() const { return volumePercent; }
|
||||
|
|
@ -43,6 +44,7 @@ private:
|
|||
// Crossfade state
|
||||
bool crossfading = false;
|
||||
std::string pendingTrack;
|
||||
bool pendingIsFile = false;
|
||||
float fadeTimer = 0.0f;
|
||||
float fadeDuration = 0.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue