Fix audio bug causing infinite loops in SR

Fix bug where SACT2.Music_IsPlay would return true after a stream
stopped playing. This was causing infinite loops in Sengoku Rance when
waiting for a fade-out to complete.
This commit is contained in:
Nunuhara Cabbage
2021-12-09 20:33:19 -08:00
parent 51d21612d2
commit 39c69423e3
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -242,6 +242,10 @@ static int refill_stream(sts_mixer_sample_t *sample, void *data)
}
}
if (r == STS_STREAM_COMPLETE) {
ch->voice = -1;
}
return r;
}