Browse code

[NCSF] Fix slight popping in some songs due to PLAYER Record oversight allowing padding data alongside actual channel data

Clarissa Walker authored on 2024/10/01 05:06:47
Showing 1 changed files
... ...
@@ -56,7 +56,8 @@ INFOEntryPLAYER::INFOEntryPLAYER() : channelMask(0)
56 56
 
57 57
 void INFOEntryPLAYER::Read(PseudoFile &file)
58 58
 {
59
-	file.ReadLE<std::uint16_t>(); // maxSeqs
60
-	this->channelMask = file.ReadLE<std::uint16_t>();
59
+	file.ReadLE<std::uint8_t>(); // maxSeqs
60
+	this->channelMask = file.ReadLE<std::uint8_t>();
61
+	file.ReadLE<std::uint8_t>(); // padding
61 62
 	file.ReadLE<std::uint32_t>(); // heapSize
62 63
 }