To kill the process that uses /dev/dsp automatically, just do:
fuser -k /dev/dsp
fuser --help
Will give you more info on it, also check out the man/info pages. It can also list what's using the file, and it does a lotmore.
So.. you could just make a shell script:
Code:
#!/bin/sh
fuser -k /dev/dsp
<Inser whatever you use to start the program with it's full path, use 'which "program name" ' to fine out the path to it>
Make a file of that, (remember not to include the <>), chmod that +x and save it in /usr/bin
Then run the file. Should work just fine
Happy gaming!