From 760765d350e86c41b5b2c5ae269ca81f6a38bdda Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Thu, 28 Jul 2022 19:07:20 +0000 Subject: [PATCH] Add web --- source/engine/engine.c | 2 ++ source/engine/music.c | 36 ++++++++++++++++++++++++++++++++++++ source/engine/sound.c | 1 + source/engine/window.c | 2 +- 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/source/engine/engine.c b/source/engine/engine.c index 0d8244f..b8f5341 100755 --- a/source/engine/engine.c +++ b/source/engine/engine.c @@ -12,6 +12,8 @@ #define PL_MPEG_IMPLEMENTATION #include +#define STB_ + #ifdef EDITOR #include "editor.h" #endif diff --git a/source/engine/music.c b/source/engine/music.c index 4b3611f..8ffd7f3 100644 --- a/source/engine/music.c +++ b/source/engine/music.c @@ -87,3 +87,39 @@ void play_song(const char *midi, const char *sf) cursong.filter = dsp_midi_fillbuf; first_free_bus(cursong); } + + +void music_play() +{ + +} + +void music_stop() +{ + +} + +void music_volume() +{ + +} + +void music_resume() +{ + +} + +void music_paused() +{ + +} + +void music_pause() +{ + +} + +void sound_play() +{ + +} \ No newline at end of file diff --git a/source/engine/sound.c b/source/engine/sound.c index d9a2d0d..a581beb 100755 --- a/source/engine/sound.c +++ b/source/engine/sound.c @@ -7,6 +7,7 @@ #include "limits.h" #include "time.h" #include "music.h" +#include "stb_vorbis.h" #include "SDL2/SDL.h" diff --git a/source/engine/window.c b/source/engine/window.c index b866a06..8727fcc 100755 --- a/source/engine/window.c +++ b/source/engine/window.c @@ -70,7 +70,7 @@ struct mSDLWindow *MakeSDLWindow(const char *name, int width, int height, uint32 w->width = width; w->height = height; - printf("NUmber of windows: %d.\n", windows.len); + YughInfo("Number of windows: %d.\n", windows.len); w->id = windows.len-1; w->window = glfwCreateWindow(width, height, name, NULL, sharewin);