diff options
author | Carsten Weisse <[email protected]> | 2004-09-04 14:25:32 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-09-04 14:25:32 +0000 |
commit | ccdf732d72dde1cb576a6e8d1ded1cdb0dd976c2 (patch) | |
tree | b79e612a9ab37c1fdccb1f0dafa4990285982b1a /src | |
parent | 5d8858f709418697651bc4211002a152dc0aceab (diff) |
fallback to dummy if the /dev/dsp is locked (linux)
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/sound/joal/JOALSoundImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java index ff9f937..101814e 100644 --- a/src/jake2/sound/joal/JOALSoundImpl.java +++ b/src/jake2/sound/joal/JOALSoundImpl.java @@ -2,7 +2,7 @@ * JOALSoundImpl.java * Copyright (C) 2004 * - * $Id: JOALSoundImpl.java,v 1.2 2004-07-13 11:20:28 cawe Exp $ + * $Id: JOALSoundImpl.java,v 1.3 2004-09-04 14:25:32 cawe Exp $ */ package jake2.sound.joal; @@ -63,6 +63,9 @@ public final class JOALSoundImpl implements Sound { } catch (OpenALException e) { Com.Printf(e.getMessage() + '\n'); return false; + } catch (Exception e) { + Com.DPrintf(e.getMessage() + '\n'); + return false; } al.alGenBuffers(MAX_SFX, buffers); s_volume = Cvar.Get("s_volume", "0.7", Defines.CVAR_ARCHIVE); |