summary refs log tree commit diff stats
path: root/src/muxer.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-12 09:53:02 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-12 09:53:02 -0500
commit3996ccb4e2a0d81500d1b1370b2b97256d1ee465 (patch)
treee422ab35c9edbb034e44eab00f7a13666eeea6f8 /src/muxer.h
parentde7ee5ef022a8ccaece0ea5f5402adedeafe36b4 (diff)
downloadether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.gz
ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.bz2
ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.zip
added transition and the world music
Diffstat (limited to 'src/muxer.h')
-rw-r--r--src/muxer.h12
1 files changed, 12 insertions, 0 deletions
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:
15 15
16using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>; 16using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>;
17 17
18enum class TransitionState {
19 Pre,
20 Transition,
21 Post,
22 Stopped
23};
24
18class Muxer { 25class Muxer {
19public: 26public:
20 Muxer(); 27 Muxer();
@@ -25,11 +32,16 @@ public:
25 32
26 void setMusicLevel(int level); 33 void setMusicLevel(int level);
27 34
35 void stopMusic();
36
28 void update(); 37 void update();
29 38
30private: 39private:
31 fmod_system_ptr system_; 40 fmod_system_ptr system_;
32 FMOD::Studio::EventInstance* exploration_event_; 41 FMOD::Studio::EventInstance* exploration_event_;
42 FMOD::Studio::EventInstance* transition_event_;
43 FMOD::Studio::EventInstance* the_world_event_;
44 TransitionState transition_state_ = TransitionState::Pre;
33}; 45};
34 46
35#endif /* end of include guard: MUXER_H_3146C802 */ 47#endif /* end of include guard: MUXER_H_3146C802 */