• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CleverRaven / Cataclysm-DDA / 9355
33%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2018 06:00AM UTC
Jobs 1
Files 431
Run time 32s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9355

push

travis-ci

kevingranade
Fix crash with no audio device (#25045)

* Fix crash with no audio device

If the game was compiled with SOUND=1 but the system doesn't actually
have an audio device to use, it crashes to desktop as it keeps trying to
setup and use a non-existent audio device, even if you have
SOUND_ENABLED set to `false` in options.json.

This fixes the issue by adding some checks to make sure sound is enabled
and didn't fail to init when we go playing with audio.

This attempts to treat a corner case where if you start the game with no
audio devices, but then enable one, then try disabling/enabling audio in
the options menu, we should theoretically get sound to work if we try to
re-init the audio device.  In my local testing, sound appeared to still
not work after enabling the audio device after toggling the option, but
there might be systems where this does actually work/or there's
something I missed that can fix that corner case.

In any case this fixes the crash to desktop.

Fixes #24142

SUMMARY: Bugfixes "Fix crash with no audio device"

* Make volume const in check_sound

26472 of 108687 relevant lines covered (24.36%)

120473.04 hits per line

Jobs
ID Job ID Ran Files Coverage
2 9355.2 (COMPILER=g++-4.8 CODE_COVERAGE=true) 24 Aug 2018 06:00AM UTC 0
24.36
Travis Job 9355.2
Source Files on build 9355
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9355
  • 0e7bca3a on github
  • Prev Build on master (#9354)
  • Next Build on master (#9358)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc