0
0
Fork 0

amadeus: Fix a typo in TapFrame logic (#1767)

This fix a crash at boot in Pang Adventures
This commit is contained in:
Mary 2020-12-02 00:46:26 +01:00 committed by GitHub
parent cf6cd71488
commit bc11443621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ namespace Ryujinx.Audio.Renderer.Server.Performance
public override void TapFrame(bool dspRunningBehind, uint voiceDropCount, ulong startRenderingTicks) public override void TapFrame(bool dspRunningBehind, uint voiceDropCount, ulong startRenderingTicks)
{ {
if (_availableFrameCount > 1) if (_availableFrameCount > 0)
{ {
int targetIndexForHistory = _indexHistoryWrite; int targetIndexForHistory = _indexHistoryWrite;