Mercurial > hg > dmlib
comparison ppl.c @ 297:a991e4f0acfe
Make audio buffer smaller, for now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 11 Oct 2012 16:42:02 +0300 |
parents | 6d62918739c6 |
children | 59045853853d |
comparison
equal
deleted
inserted
replaced
296:6d62918739c6 | 297:a991e4f0acfe |
---|---|
680 goto error_exit; | 680 goto error_exit; |
681 } | 681 } |
682 | 682 |
683 engine.afmt.freq = optOutFreq; | 683 engine.afmt.freq = optOutFreq; |
684 engine.afmt.channels = optOutChannels; | 684 engine.afmt.channels = optOutChannels; |
685 engine.afmt.samples = optOutFreq * optOutChannels * 4; | 685 engine.afmt.samples = optOutFreq / 16; |
686 engine.afmt.callback = audioCallback; | 686 engine.afmt.callback = audioCallback; |
687 engine.afmt.userdata = (void *) engine.dev; | 687 engine.afmt.userdata = (void *) engine.dev; |
688 | 688 |
689 // Open the audio device | 689 // Open the audio device |
690 if (SDL_OpenAudio(&engine.afmt, NULL) < 0) | 690 if (SDL_OpenAudio(&engine.afmt, NULL) < 0) |