mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-08 14:58:14 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
Submodule subprojects/libsys4 updated: 5c7da33733...529cd1053e
Reference in New Issue
Block a user