diff options
| author | miguel <miguel@debian-acer.softwarefools.com> | 2017-09-22 19:14:34 +0200 |
|---|---|---|
| committer | miguel <miguel@debian-acer.softwarefools.com> | 2017-09-22 19:14:34 +0200 |
| commit | d0e7bac91ee97f48e8e11a54c56c48d050a10c46 (patch) | |
| tree | b6dfda01a7c6288c3698958ae1e28a93ee8470be /main.cpp | |
| parent | 91a0bc329297a7b3c597e9ae98535f8ccc3af4d7 (diff) | |
added minimal template for browser version and audio testing
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
