summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authormiguel <miguel@debian-acer.softwarefools.com>2017-09-22 19:14:34 +0200
committermiguel <miguel@debian-acer.softwarefools.com>2017-09-22 19:14:34 +0200
commitd0e7bac91ee97f48e8e11a54c56c48d050a10c46 (patch)
treeb6dfda01a7c6288c3698958ae1e28a93ee8470be /main.cpp
parent91a0bc329297a7b3c597e9ae98535f8ccc3af4d7 (diff)
added minimal template for browser version and audio testing
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);