Update sound.hpp

This commit is contained in:
tobid7 2021-07-24 23:59:29 +02:00 committed by GitHub
parent c2484c1892
commit bfa3b0a1c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,21 @@
#include <3ds.h> #include <3ds.h>
#include <string> #include <string>
/** Sound Class */
class sound { class sound {
public: 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); sound(const std::string& path, int channel = 1, bool toloop = false);
/** deconstruct the sound */
~sound(); ~sound();
/** play the sound */
void play(); void play();
/** stop the sound */
void stop(); void stop();
private: private: