diff options
author | Nebuleon Fumika | 2013-02-03 16:17:06 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-02-03 16:17:06 -0500 |
commit | 1ddc8b53fe92a88578f23ace849168bc19ca0cd0 (patch) | |
tree | 9dfda510908a9c842c5193d801e18c2faf236c38 /source | |
parent | 538718997fd9c85289669c1b5a8e46a45b6328af (diff) | |
download | snesemu-1ddc8b53fe92a88578f23ace849168bc19ca0cd0.tar.gz snesemu-1ddc8b53fe92a88578f23ace849168bc19ca0cd0.tar.bz2 snesemu-1ddc8b53fe92a88578f23ace849168bc19ca0cd0.zip |
Faking out the sound synchronisation with a buffer of silence wasn't necessary.
Diffstat (limited to 'source')
-rw-r--r-- | source/nds/entry.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp index 286722e..727986e 100644 --- a/source/nds/entry.cpp +++ b/source/nds/entry.cpp @@ -982,27 +982,8 @@ void S9xProcessSound (unsigned int) if (Now - LastSoundEmissionTime >= 11719 /* 500 milliseconds */) { LastSoundEmissionTime = Now; - // We were probably paused. Restart sending sound with an - // empty buffer. - do { - audiobuff = (unsigned short*)ds2_getAudiobuff(); - } while (audiobuff == NULL); //There are audio queue in sending or wait to send - - memset(audiobuff, 0, DS2_BUFFER_SIZE -#ifndef FOREVER_STEREO - << (so.stereo ? 1 : 0) -#else - << 1 -#endif -#ifndef FOREVER_16_BIT_SOUND - << (so.sixteen_bit ? 1 : 0) -#else - << 1 -#endif - ); - - ds2_updateAudio(); - // And then the real audio. (fall through) + // We were probably paused. Restart sending sound, + // synchronising from now. } else { |