diff options
| author | miguel <miguel@localhost> | 2017-09-23 09:09:09 +0200 |
|---|---|---|
| committer | miguel <miguel@localhost> | 2017-09-23 09:09:09 +0200 |
| commit | 8ea31cecb5d03158f0b8a8778848962b6f522095 (patch) | |
| tree | 9a37a24c2a4b722631afa6e10ed4f01fd8840e0f /main.cpp | |
| parent | 4ce413734990108d2c4a9ed11c5050e0e8b1f0d4 (diff) | |
experimenting with SDL sound
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
