diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
commit | 3996ccb4e2a0d81500d1b1370b2b97256d1ee465 (patch) | |
tree | e422ab35c9edbb034e44eab00f7a13666eeea6f8 /src/muxer.h | |
parent | de7ee5ef022a8ccaece0ea5f5402adedeafe36b4 (diff) | |
download | ether-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.h | 12 |
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 | ||
16 | using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>; | 16 | using fmod_system_ptr = std::unique_ptr<FMOD::Studio::System, fmod_system_deleter>; |
17 | 17 | ||
18 | enum class TransitionState { | ||
19 | Pre, | ||
20 | Transition, | ||
21 | Post, | ||
22 | Stopped | ||
23 | }; | ||
24 | |||
18 | class Muxer { | 25 | class Muxer { |
19 | public: | 26 | public: |
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 | ||
30 | private: | 39 | private: |
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 */ |