21 lines
415 B
C++
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
|