diff options
Diffstat (limited to 'src/mixer.h')
-rw-r--r-- | src/mixer.h | 8 |
1 files changed, 7 insertions, 1 deletions
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<Mix_Chunk, chunk_deleter>; | |||
56 | class Mixer { | 56 | class Mixer { |
57 | public: | 57 | public: |
58 | 58 | ||
59 | void playSound(std::string filename); | 59 | void playSound(std::string_view filename); |
60 | |||
61 | int loopSound(std::string_view filename); | ||
62 | |||
63 | void stopChannel(int channel); | ||
60 | 64 | ||
61 | private: | 65 | private: |
62 | 66 | ||
67 | Mix_Chunk* getChunkByFilename(std::string filename); | ||
68 | |||
63 | mix_wrapper mix_; | 69 | mix_wrapper mix_; |
64 | std::map<std::string, chunk_ptr> sounds_; | 70 | std::map<std::string, chunk_ptr> sounds_; |
65 | }; | 71 | }; |