Files
DarkStore/include/utils/sound.h
T
2020-06-19 05:13:20 +02:00

21 lines
286 B
C++

#ifndef SOUND_H
#define SOUND_H
#include <3ds.h>
#include <string>
class sound {
public:
sound(const std::string& path, int channel = 1, bool toloop = true);
~sound();
void play();
void stop();
private:
u32 dataSize;
ndspWaveBuf waveBuf;
u8* data = NULL;
int chnl;
};
#endif