initial commit

This commit is contained in:
jettis
2024-12-05 20:49:37 +02:00
commit 688def7e01
235 changed files with 3334 additions and 0 deletions

20
Sound.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef SOUND_H
#define SOUND_H
#include <SDL3/SDL.h>
#include <SDL3/SDL_audio.h>
#include "SoundData.h"
class Sound {
private:
SDL_AudioStream *stream;
bool is_open;
public:
Sound();
void setSound(SoundData *sound_data);
static void streamCb(void *userdata, SDL_AudioStream *stream, int additional_amount, int total_amount);
void closeSound();
};
#endif