legacyclonk / LegacyClonk

The LegacyClonk engine and the c4group command line tool.
https://clonkspot.org/lc-en
Other
83 stars 18 forks source link

fmod crashes when playing Craftmanship.it with a MaxChannels value greater than 470 #103

Closed Fulgen301 closed 1 year ago

Fulgen301 commented 1 year ago

If Craftmanship.it is played using fmod.dll and Config.Sound.MaxChannels, which is passed to FSOUND_Init, is greater than 470, an access violation happens within fmod.dll. The crash can also be replicated using a minimum example.

https://github.com/legacyclonk/LegacyClonk/blob/9322f4b775c5a7b2a79b02476ee198de35668037/src/C4AudioSystemFmodRuntime.cpp#L430