It looks like you're new here. If you want to get involved, click one of these buttons!
input "WAV File to play?", wavfile$shell "rundll mmsystem,sndPlaySound " + wavfile$print "WAV Should now be playing..."
That will play a wav file for you. HOWEVER, this only works in Windows 95 or higher, because of the use of the API command. Don't know what API is? No worries, just use the code, and be happy.
Note:You can only do this to WAV files, and no other sound types. I'm currently building an external library in C++ for use with Qbasic, and it may give the ability to play wave files, mid files, mp3's, that is, if I can get it coded correctly.