summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/__init__.py
diff options
context:
space:
mode:
author 057a3dd61f99517a3afea0051a49cb27994f94d <rslovers@yandex.com>2017-06-25 09:59:59 +0000
committer somebody <somebody@somewhere>2017-06-25 18:28:43 +0000
commit9788f622e2f76c0487e5f0c430e92be75be991ea (patch)
tree63a813522cd3b226146211d39055c3155339fe4b /docs/source/__init__.py
parentfe01a1342c41b33601a8cd93904335b5039feda7 (diff)
Fix sound_sdl::sdl_callback, fill buffer with silence when underflow.
The problem is most noticeable when you are saving state, and the save takes a relatively long time, short period of audio gets played repeatedly, which is usually unpleasant. I found out it's caused by sdl_sound::sdl_callback not fill the audio buffer with silence when underflow occurs. According to https://wiki.libsdl.org/SDL_AudioSpec, if there's nothing to play, the callback should fill the buffer with silence. I tested this change and the problem is gone.
Diffstat (limited to 'docs/source/__init__.py')
0 files changed, 0 insertions, 0 deletions