summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 6978fdb..c2c9280 100644
--- a/main.cpp
+++ b/main.cpp
@@ -6,6 +6,7 @@
#endif
#include <SDL.h>
+#include <SDL_audio.h>
#include "World.h"
@@ -70,8 +71,8 @@ void sdl_play_sound()
// SDL_LoadWAV("music.wav", &wavSpec, &wavBuffer, &wavLength);
// SDL_LoadWAV("win.wav", &wavSpec, &wavBuffer, &wavLength);
-#ifndef __EMSCRIPTEN__
int success = SDL_QueueAudio(deviceId, wavBuffer, wavLength);
+#ifndef __EMSCRIPTEN__
#endif
//SDL_CloseAudioDevice(deviceId);