Files
SDLRousku/Sound.h
2024-12-05 20:49:37 +02:00

21 lines
415 B
C++

#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