#!/bin/sh

# decrease bellow values if you have performance trouble...

export QUAKE_SOUND_SAMPLEBITS=16
export QUAKE_SOUND_SPEED=22050
export QUAKE_SOUND_CHANNELS=2

#

CARDID=`cat /dev/gusinfo | grep -w "CARD" | grep "#1" | cut -d \( -f 2 | cut -d \) -f 1`

echo "Driver setup for quake - GUS card #1 ($CARDID)..."

echo "$CARDID dma1_size 64" > /dev/gusinfo
echo "$CARDID dma2_size 64" > /dev/gusinfo
./xquake
echo "$CARDID dma1_size auto" > /dev/gusinfo
echo "$CARDID dma2_size auto" > /dev/gusinfo

echo "Driver setup returned to previous state..."
