Lumina icon indicating copy to clipboard operation
Lumina copied to clipboard

An exception occurs in ScdFile#GetAudio()

Open ikafly144 opened this issue 4 months ago • 3 comments

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

ikafly144 avatar Sep 21 '25 05:09 ikafly144