From 8ea31cecb5d03158f0b8a8778848962b6f522095 Mon Sep 17 00:00:00 2001 From: miguel Date: Sat, 23 Sep 2017 09:09:09 +0200 Subject: experimenting with SDL sound --- main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index c2c9280..42c547b 100644 --- a/main.cpp +++ b/main.cpp @@ -62,6 +62,7 @@ void sdl_play_sound() if (first) { SDL_LoadWAV("coin.wav", &wavSpec, &wavBuffer, &wavLength); + // open most reasonable default device for playback. deviceId = SDL_OpenAudioDevice(NULL, 0, &wavSpec, NULL, 0); SDL_PauseAudioDevice(deviceId, 0); first=false; -- cgit v1.2.3