[xoreos-git] [DrMcCoy/xoreos] 3102fe: SOUND: Don't error out when no working sound devic...

GitHub noreply at github.com
Sat Apr 21 23:17:24 CEST 2012


  Branch: refs/heads/master
  Home:   https://github.com/DrMcCoy/xoreos
  Commit: 3102fe71ba71393a7ef069ab61a60e6231b4ba53
      https://github.com/DrMcCoy/xoreos/commit/3102fe71ba71393a7ef069ab61a60e6231b4ba53
  Author: Sven Hesse <drmccoy at users.sourceforge.net>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M src/sound/sound.cpp
    M src/sound/sound.h

  Log Message:
  -----------
  SOUND: Don't error out when no working sound device was found

Instead, try to act normal and just don't play anything.

Note: There's currently no way to check if a sound naturally ended
      when in no sound mode. isPlaying() will always return true
      for a valid handle, unless it is forcibly stopped with
      stopChannel() or stopAll(). Code that waits for a sound to
      finish playing will enter an endless loop.





More information about the xoreos-git mailing list