From 6cfc54f019ea793c75c012af9c8249eac936cfac Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 11 Mar 2022 15:33:28 -0500 Subject: Added music and lamp popping sound --- src/muxer.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/muxer.h (limited to 'src/muxer.h') diff --git a/src/muxer.h b/src/muxer.h new file mode 100644 index 0000000..f99cce4 --- /dev/null +++ b/src/muxer.h @@ -0,0 +1,35 @@ +#ifndef MUXER_H_3146C802 +#define MUXER_H_3146C802 + +#include +#include +#include +#include + +class fmod_system_deleter { +public: + void operator()(FMOD::Studio::System* val) { + val->release(); + } +}; + +using fmod_system_ptr = std::unique_ptr; + +class Muxer { +public: + Muxer(); + + void setPlayerLoc(int x, int y); + + void playSoundAtPosition(std::string name, float x, float y); + + void setMusicLevel(int level); + + void update(); + +private: + fmod_system_ptr system_; + FMOD::Studio::EventInstance* exploration_event_; +}; + +#endif /* end of include guard: MUXER_H_3146C802 */ -- cgit 1.4.1