feat(audio): add day/night-based BGM switching

This commit is contained in:
2026-07-08 10:00:53 +08:00
parent 8259b211ea
commit 85761dee8f
10 changed files with 36 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ public:
void init();
void play_bgm();
void change_bgm(const std::string& sound);
void play_3d(const std::string& sound, const glm::vec3& pos,
bool check = false);
void play_2d(const std::string& sound, bool check = false);

View File

@@ -6,6 +6,7 @@ public:
AudioFade(AudioSource* source, float fade_in = 0.0f, float fade_out = 0.0f);
~AudioFade();
void update();
void reset();
private:
AudioSource* m_source = nullptr;