]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Fix issue with noise during startup
authorAmadeusz Sławiński <amade@asmblr.net>
Mon, 18 Feb 2019 18:09:29 +0000 (19:09 +0100)
committerAmadeusz Sławiński <amade@asmblr.net>
Tue, 26 Feb 2019 19:03:54 +0000 (20:03 +0100)
commit73a55f474a4a3c27b879b87f41b62f370858ea06
tree57862229cdfa17c8a7f2b0aa5a368ce0b1f7f717
parent3bd7661c7b5ae8a3a0810f9a0bd3dc971863f891
Fix issue with noise during startup

After migrating to SDL2 interfaces there is noise during startup fix
this by initializng buffer as specification requires.

Per SDL_AudioCallback spec:
The callback must completely initialize the buffer; as of SDL 2.0, this buffer is not initialized before the callback is called. If there is nothing to play, the callback should fill the buffer with silence.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
snd_sdl.c