games/typhoon_2001: Fix sound.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-12-16 12:39:13 -05:00 committed by Willy Sudiarto Raharjo
parent 93fc390271
commit 34816facab
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 9 additions and 2 deletions

View file

@ -45,6 +45,10 @@ if [ ! -d "$T2K1_HOME" ]; then
done
fi
cd "$T2K1_HOME" && exec ./typhoon || \
# 20211216 bkw: use aoss unless real OSS is available.
AOSS=aoss
[ -c /dev/dsp ] && AOSS=""
cd "$T2K1_HOME" && exec $AOSS ./typhoon || \
echo "Can't exec $T2K1_HOME/typhoon - " \
"corrupt install, try removing $T2K1_HOME and running $0 again"

View file

@ -11,6 +11,9 @@
# typhoon.cfg needs to be a real file and be writable by the user.
# (it will be created the first time the game is run).
# 20211216 bkw: BUILD=3
# - make sound work OOTB: run binary with aoss wrapper.
# 20211012 bkw: BUILD=2
# - binary in /usr/games.
# - new-style icons.
@ -20,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=typhoon_2001
VERSION=${VERSION:-r3992}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}