Brainstorm now compiles

This commit is contained in:
2022-06-23 07:34:51 +00:00
parent e6ca94c2df
commit 41b8632b32
7 changed files with 3570 additions and 45 deletions

View File

@@ -3,6 +3,8 @@
#include <miniaudio.h>
struct Mix_Chunk {
int i;
};
@@ -11,13 +13,15 @@ struct Mix_Music {
int i;
};
struct sound {
struct Mix_Chunk *sound;
unsigned char volume;
enum MUS {
MUS_STOP,
MUS_PLAY,
MUS_PAUSE
};
struct music {
struct Mix_Music *music;
struct sound {
ma_sound sound;
enum MUS state;
unsigned char volume;
};
@@ -28,7 +32,7 @@ void audio_open(const char *device);
void audio_close();
struct sound *make_sound(const char *wav);
struct music *make_music(const char *ogg);
struct sound *make_music(const char *ogg);
void play_sound(struct sound *sound);