I updated my system and SoLoud::WavStream::load("assets/intro.ogg") had begun crashing. I tracked down the problem, and it's to do with the use of Soloud_Filehack in SoLoud::WavStream::loadogg. It seems to assume that the mFileHandle member comes first in memory, which it wasn't in my case (it was at offset 8).
I would fix this problem and PR, but honestly I have no idea how to fix this in a clean way. The fact this code existed at all is concerning. Turning (Soloud_Filehack*)fp into dynamic_cast<DiskFile*>(fp)->mFileHandle wouldn't be much better.
I updated my system and
SoLoud::WavStream::load("assets/intro.ogg")
had begun crashing. I tracked down the problem, and it's to do with the use ofSoloud_Filehack
inSoLoud::WavStream::loadogg
. It seems to assume that themFileHandle
member comes first in memory, which it wasn't in my case (it was at offset 8).I would fix this problem and PR, but honestly I have no idea how to fix this in a clean way. The fact this code existed at all is concerning. Turning
(Soloud_Filehack*)fp
intodynamic_cast<DiskFile*>(fp)->mFileHandle
wouldn't be much better.