The International Simutrans Forum

 

Author Topic: Fix for sound loading even when sound is off  (Read 543 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 259
Fix for sound loading even when sound is off
« 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10670
  • Languages: De,EN,JP
Re: Fix for sound loading even when sound is off
« Reply #1 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.

Offline Matthew

  • Devotee
  • *
  • Posts: 580
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: Fix for sound loading even when sound is off
« Reply #2 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10670
  • Languages: De,EN,JP
Re: Fix for sound loading even when sound is off
« Reply #3 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.