Fixed last remaining audio bugs

This commit is contained in:
Nicholas Estelami
2022-06-13 21:54:25 -04:00
parent 6c94c8690e
commit 0a629ea6e9
9 changed files with 61 additions and 33 deletions

View File

@@ -73,11 +73,11 @@ namespace Ship
{
InstrumentEntry entry;
entry.isValidEntry = reader->ReadByte();
entry.loaded = reader->ReadByte();
entry.normalRangeLo = reader->ReadByte();
entry.normalRangeHi = reader->ReadByte();
entry.releaseRate = reader->ReadByte();
entry.isValidEntry = reader->ReadUByte();
entry.loaded = reader->ReadUByte();
entry.normalRangeLo = reader->ReadUByte();
entry.normalRangeHi = reader->ReadUByte();
entry.releaseRate = reader->ReadUByte();
entry.env = ReadEnvelopeData(reader);

View File

@@ -2085,7 +2085,7 @@ static inline void* seg_addr(uintptr_t w1)
uint32_t segNum = (w1 >> 24);
uint32_t offset = w1 & 0x00FFFFFE;
//offset = 0; // Cursed Malon bug
offset = 0; // Cursed Malon bug
if (segmentPointers[segNum] != 0)
return (void*)(segmentPointers[segNum] + offset);