This commit is contained in:
John Alanbrook 2022-07-28 19:07:20 +00:00
parent 476c7ea0c6
commit 760765d350
4 changed files with 40 additions and 1 deletions

View file

@ -12,6 +12,8 @@
#define PL_MPEG_IMPLEMENTATION #define PL_MPEG_IMPLEMENTATION
#include <pl_mpeg.h> #include <pl_mpeg.h>
#define STB_
#ifdef EDITOR #ifdef EDITOR
#include "editor.h" #include "editor.h"
#endif #endif

View file

@ -87,3 +87,39 @@ void play_song(const char *midi, const char *sf)
cursong.filter = dsp_midi_fillbuf; cursong.filter = dsp_midi_fillbuf;
first_free_bus(cursong); 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()
{
}

View file

@ -7,6 +7,7 @@
#include "limits.h" #include "limits.h"
#include "time.h" #include "time.h"
#include "music.h" #include "music.h"
#include "stb_vorbis.h"
#include "SDL2/SDL.h" #include "SDL2/SDL.h"

View file

@ -70,7 +70,7 @@ struct mSDLWindow *MakeSDLWindow(const char *name, int width, int height, uint32
w->width = width; w->width = width;
w->height = height; 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->id = windows.len-1;
w->window = glfwCreateWindow(width, height, name, NULL, sharewin); w->window = glfwCreateWindow(width, height, name, NULL, sharewin);