From dab96b810691c26e29fef92d88c828a311be3e9d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 3 Feb 2021 17:11:46 -0500 Subject: Added running sounds --- src/mixer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mixer.h') diff --git a/src/mixer.h b/src/mixer.h index 010bb09..7f6ef72 100644 --- a/src/mixer.h +++ b/src/mixer.h @@ -56,10 +56,16 @@ using chunk_ptr = std::unique_ptr; class Mixer { public: - void playSound(std::string filename); + void playSound(std::string_view filename); + + int loopSound(std::string_view filename); + + void stopChannel(int channel); private: + Mix_Chunk* getChunkByFilename(std::string filename); + mix_wrapper mix_; std::map sounds_; }; -- cgit 1.4.1