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 12:09:33
Showing 1 changed files
... ...
@@ -53,7 +53,8 @@ INFOEntryPLAYER::INFOEntryPLAYER() : channelMask(0)
53 53
 
54 54
 void INFOEntryPLAYER::Read(PseudoFile &file)
55 55
 {
56
-	file.ReadLE<std::uint16_t>(); // maxSeqs
57
-	this->channelMask = file.ReadLE<std::uint16_t>();
56
+	file.ReadLE<std::uint8_t>(); // maxSeqs
57
+	this->channelMask = file.ReadLE<std::uint8_t>();
58
+	file.ReadLE<std::uint8_t>(); // padding
58 59
 	file.ReadLE<std::uint32_t>(); // heapSize
59 60
 }