summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
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;