summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-02 20:45:40 -0400
committerrealtradam <[email protected]>2023-05-02 20:45:40 -0400
commit87ca456c3f3e97f149604bc033fdd57998e2dcd4 (patch)
treeb326cacf8e135c939bfc90ba4dd75618cb8598e9 /src/rodeo.c
parent4b6ae783ce2c9f08d21d2a2969826412cc587de2 (diff)
downloadRodeoKit-87ca456c3f3e97f149604bc033fdd57998e2dcd4.tar.gz
RodeoKit-87ca456c3f3e97f149604bc033fdd57998e2dcd4.zip
added sample audio system
Diffstat (limited to 'src/rodeo.c')
-rw-r--r--src/rodeo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rodeo.c b/src/rodeo.c
index 71c4666..c6ee71b 100644
--- a/src/rodeo.c
+++ b/src/rodeo.c
@@ -1,3 +1,4 @@
+
// -- internal --
// public
#include "rodeo.h"
@@ -13,6 +14,7 @@
#endif
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
+#include "SDL2/SDL_mixer.h"
#include "SDL2/SDL_syswm.h"
#include "bgfx/c99/bgfx.h"
/*#define CGLM_FORCE_LEFT_HANDED*/
@@ -44,7 +46,7 @@ rodeo_window_init(
"Initializing SDL..."
);
- if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0)
+ if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER | SDL_INIT_AUDIO) < 0)
{
rodeo_log(
rodeo_logLevel_error,
@@ -241,6 +243,8 @@ rodeo_window_init(
state.default_texture.width = 1;
state.default_texture.height = 1;
+ rodeo_audio_initialize();
+
state.active_texture_p = &state.default_texture.internal_texture->texture_bgfx;
}
@@ -260,6 +264,7 @@ rodeo_window_deinit(void)
bgfx_shutdown();
SDL_DestroyWindow(state.window);
+ Mix_Quit();
SDL_Quit();
}