Lumina
Lumina copied to clipboard
An exception occurs in ScdFile#GetAudio()
When calling GetAudio() with an OGG format ScdFile, an "Argument Exception: length is larger than sourceArray" exception occurs in Array.Copy. After checking SaintCoinach's implementation and the SCD format, I confirmed that deleting line 517 (probably) corrects the problem, but I don't really understand how this works. SaintCoinach Implementation https://github.com/NotAdam/Lumina/blob/a2680287b1cc41f9640d04c200c97680a47a9713/src/Lumina/Data/Files/ScdFile.cs#L517