2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:47:42 +00:00

Buffer overrun bug fixes

This commit is contained in:
Jack Andersen
2017-11-27 16:48:24 -10:00
parent f60097b7e3
commit 31ccb48246
5 changed files with 13 additions and 7 deletions

View File

@@ -204,6 +204,12 @@ struct SDSPStream : boo::IAudioVoiceCallback
size_t supplyAudio(boo::IAudioVoice&, size_t frames, int16_t* data)
{
if (!x0_active)
{
memset(data, 0, frames * 2);
return frames;
}
if (xe8_silent)
{
StopStream();