diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2016-01-08 01:39:41 +0200 |
---|---|---|
committer | Tuomas Virtanen <katajakasa@gmail.com> | 2016-01-08 01:39:41 +0200 |
commit | 4c0ce9646902f2b8586ca6fbe6b1afeba29f2d57 (patch) | |
tree | 7b5fc7f72783bae41373c4489cf1cb96e96b75dd /examples | |
parent | 8236faef140b2dd63084e8285035c215019defc0 (diff) |
Example fixes part 2
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example_play.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example_play.c b/examples/example_play.c index 50cc13e..22a29a5 100644 --- a/examples/example_play.c +++ b/examples/example_play.c @@ -190,9 +190,9 @@ int main(int argc, char *argv[]) { // Refresh audio ret = SDL_GetQueuedAudioSize(audio_dev); if(ret < AUDIOBUFFER_SIZE) { - SDL_LockAudio(); ret = Kit_GetAudioData(player, (unsigned char*)audiobuf, AUDIOBUFFER_SIZE); if(ret > 0) { + SDL_LockAudio(); SDL_QueueAudio(audio_dev, audiobuf, ret); SDL_UnlockAudio(); SDL_PauseAudioDevice(audio_dev, 0); |