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

CleverRaven / Cataclysm-DDA / 9355 / 2
33%
master: 33%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2018 06:00AM UTC
Files 431
Run time 29s
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

24 Aug 2018 03:56AM UTC coverage: 24.356% (+0.1%) from 24.214%
COMPILER=g++-4.8 CODE_COVERAGE=true

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

Source Files on job 9355.2 (COMPILER=g++-4.8 CODE_COVERAGE=true)
  • Tree
  • List 0
  • Changed 103
  • Source Changed 4
  • Coverage Changed 102
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6977
  • Travis Job 9355.2
  • 0e7bca3a on github
  • Prev Job for COMPILER=g++-4.8 CODE_COVERAGE=true on master (#9354.2)
  • Next Job for COMPILER=g++-4.8 CODE_COVERAGE=true on master (#9358.2)
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