Add files via upload

This commit is contained in:
Tobi
2021-04-03 06:02:25 +02:00
committed by GitHub
parent a719b586fc
commit 1f36fa9599
6 changed files with 948 additions and 0 deletions

21
sound.hpp Normal file
View File

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