From 3996ccb4e2a0d81500d1b1370b2b97256d1ee465 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 12 Mar 2022 09:53:02 -0500 Subject: added transition and the world music --- src/muxer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/muxer.h') diff --git a/src/muxer.h b/src/muxer.h index f99cce4..b1a5b26 100644 --- a/src/muxer.h +++ b/src/muxer.h @@ -15,6 +15,13 @@ public: using fmod_system_ptr = std::unique_ptr; +enum class TransitionState { + Pre, + Transition, + Post, + Stopped +}; + class Muxer { public: Muxer(); @@ -25,11 +32,16 @@ public: void setMusicLevel(int level); + void stopMusic(); + void update(); private: fmod_system_ptr system_; FMOD::Studio::EventInstance* exploration_event_; + FMOD::Studio::EventInstance* transition_event_; + FMOD::Studio::EventInstance* the_world_event_; + TransitionState transition_state_ = TransitionState::Pre; }; #endif /* end of include guard: MUXER_H_3146C802 */ -- cgit 1.4.1