project-navigation
Personal tools

Author Topic: Enabling/disabling sound  (Read 2707 times)

Offline anonymissimus

  • Sergeant
  • *****
  • Posts: 347
    • View Profile
Enabling/disabling sound
« on: August 14, 2014, 11:01:58 pm »
Re-enabling sound (checkbox "Enable Audio") after unchecking it doesn't work, there's no music. UI sounds work. This is while in the geoscape.
If re-enabling happens during a tactical mission, the game crashes.
Even in the first case, the program suspiciously freezes for a second or two.

console output:

...
------- sound initialization -------
SDL_mixer version: 1.2.11
... requested audio rate: 44100
... driver: 'pulse'
... audio rate: 44100
... audio channels: 2
... loaded ogg vorbis support
Error: Received signal 11.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Enabling/disabling sound
« Reply #1 on: February 07, 2015, 02:41:22 am »
I couldn't reproduce the battlescape crash, but music should be back OK ne re-enabling the sound now (commit c33256a at master), as a bonus I added an option to toggle background music on/off to the options...