initial commit
This commit is contained in:
20
Sound.h
Normal file
20
Sound.h
Normal 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
|
||||
Reference in New Issue
Block a user