The International Simutrans Forum

Development => Patches & Projects => Topic started by: ceeac on October 09, 2020, 03:55:55 PM

Title: Fix for sound loading even when sound is off
Post by: ceeac on October 09, 2020, 03:55:55 PM
When starting Simutrans with sound turned off (using the -nosound command line flag), sound_desc_t::get_sound_id tries to load the sound anyway. This patch fixes the bug.
Title: Re: Fix for sound loading even when sound is off
Post by: prissi on October 10, 2020, 11:52:48 AM
It was allowed to turn on sound via the dialog panel, even if started with -nosound. (same for nomidi). That was a change 8 years ago.
Title: Re: Fix for sound loading even when sound is off
Post by: Matthew on October 11, 2020, 12:16:53 AM
As a player, I am surprised to read that. I do not want Simutrans to load sound files when the -nosound parameter is used. When the pakset and/or savegame are so large that I am running low on RAM, it is very useful to be able to skip loading sound files.
Title: Re: Fix for sound loading even when sound is off
Post by: prissi on October 11, 2020, 01:09:51 PM
You can rename the sound folder ... But the sound fiels are tiny compared to the images in memory.