Play tavern music file on login screen

This commit is contained in:
Kelsi 2026-02-05 15:44:42 -08:00
parent 02f8328747
commit b05089aa3f
7 changed files with 71 additions and 0 deletions

View file

@ -18,6 +18,7 @@ public:
void shutdown();
void playMusic(const std::string& mpqPath, bool loop = true);
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 update(float deltaTime);

View file

@ -130,6 +130,7 @@ public:
double getLastTerrainRenderMs() const { return lastTerrainRenderMs; }
double getLastWMORenderMs() const { return lastWMORenderMs; }
double getLastM2RenderMs() const { return lastM2RenderMs; }
audio::MusicManager* getMusicManager() { return musicManager.get(); }
private:
core::Window* window = nullptr;

View file

@ -37,6 +37,8 @@ public:
*/
bool isAuthenticating() const { return authenticating; }
void stopLoginMusic();
/**
* Get status message
*/
@ -88,6 +90,9 @@ private:
// Background video
bool videoInitAttempted = false;
rendering::VideoPlayer backgroundVideo;
bool musicInitAttempted = false;
bool musicPlaying = false;
};
}} // namespace wowee::ui