#!/bin/bash

function select_card {
    case $CHOICE in
	A) SOUNDCARD=emu10k1;;
	B) SOUNDCARD=sbawe;;
	C) SOUNDCARD=sb16;;
    esac
}

function configure_sound {
    RAD="Select your soundcard"
    INPUT=select_card
    STRING=("A" "Soundblaster LIVE !" on \
	    "B" "Soundblaster AWE32" off \
	    "C" "Soundblaster 16" off )
    radiolist "${STRING[@]}"

    inputbox "Specify IRQ (or hit enter for \"9\")"
    IRQ=${INPUT:=9}

    inputbox "Specify IO-port (or hit enter for \"0x220\")"
    IOPORT=${INPUT:=0x220}

    inputbox "Specify MPU-port (or hit enter for \"0x330\")"
    MPUPORT=${INPUT:=0x330}

    save_cmsoundrc
}

