Fix buffer exhaustion / audio glitches

This commit is contained in:
Christian Semmler 2024-02-03 16:12:31 -05:00
parent f405ca51fc
commit e68e25275f
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -56,7 +56,7 @@ MxDSBuffer::~MxDSBuffer()
}
case 0x80: {
MxU32 a =
(m_pBuffer - streamer->GetSubclass1().GetBuffer()) / (streamer->GetSubclass1().GetSize() << 10);
(m_pBuffer - streamer->GetSubclass2().GetBuffer()) / (streamer->GetSubclass2().GetSize() << 10);
MxU32 bit = 1 << ((MxU8) a & 0x1f);
MxU32 index = (a & ~0x18u) >> 3;