From bfa3b0a1c6eb1ac8e2c4ebf25949d102d0612023 Mon Sep 17 00:00:00 2001 From: Tobi Date: Sat, 24 Jul 2021 23:59:29 +0200 Subject: [PATCH] Update sound.hpp --- sound.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound.hpp b/sound.hpp index 6e52e94..e75c61f 100644 --- a/sound.hpp +++ b/sound.hpp @@ -3,11 +3,21 @@ #include <3ds.h> #include +/** Sound Class */ class sound { public: + /** + *Construct new Soundeffect + *path: Path to the .wav file + *channel: the channel 1-23 + *toloop: true:loop the sound, false: don't loop + "/ sound(const std::string& path, int channel = 1, bool toloop = false); + /** deconstruct the sound */ ~sound(); + /** play the sound */ void play(); + /** stop the sound */ void stop(); private: