mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 08:39:05 +00:00
5f5669678d
Put `Music.wav` to `sdmc:/3ds/Universal-Updater/`. **Warning**: The Wav File should not be larger than 13 / 14 MB, otherwise it will crash.
19 lines
259 B
C++
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;
|
|
}; |