Files
DarkStore/include/utils/sound.h
T
VoltZ 5f5669678d Add Initial Music Playback, because I just feel like doing it. 😛
Put `Music.wav` to `sdmc:/3ds/Universal-Updater/`. **Warning**: The Wav File should not be larger than 13 / 14 MB, otherwise it will crash.
2019-11-17 22:34:04 +01:00

19 lines
259 B
C++

#pragma once
#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;
};