Update sound.hpp
This commit is contained in:
parent
c2484c1892
commit
bfa3b0a1c6
10
sound.hpp
10
sound.hpp
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user