mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 00:40:15 +00:00
Play tavern music file on login screen
This commit is contained in:
parent
02f8328747
commit
b05089aa3f
7 changed files with 71 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue