qbasic sound

IBM PC 300GL/6563-86U
November 29, 2008 at 12:01:01
Specs: winxp sp3, PIII 600MHz/256mb ram
I got QBASIC program off of my old computer along with an example file (nibbles.BAS) and when I tried to run the example file everything worked but the sound. It uses the PLAY command to play small sounds (in the intro and during play). The BEEP command does not work either.

See More: qbasic sound

Report •


#1
November 29, 2008 at 12:42:48
As I know, it's not possible to play sound to the sound card by DOS programs.

In the time of Windows 95/98, you also had to install and load DOS drivers for the sound card, which where loaded before Windows 95/98 started up.
After that you where able to play sound at the sound card from within a DOS program.

I guess, the only way is, to run the machine in pure DOS mode by using a floppy disk or BOOT CD you may have created, that let's you start in DOS mode, load DOS sound driver and start your QBasic program.


Report •

#2
November 30, 2008 at 07:41:35
it used to work in win2k.

Report •

#3
November 30, 2008 at 08:50:34
W2K, WinXP, same problem.

Report •

Related Solutions

#4
December 8, 2008 at 15:42:10
There was never a problem on win2k.
actually I just ran it on my other computer (win2k) and the sound worked but that computer is very slow. I remember it working on my laptop (win2k) too. I guess what I really want to know was if there was some kind of dos sound compatibility fix that windows 2k came with that win xp doesn't ship with that can be obtained for free from microsoft.

Report •

#5
December 8, 2008 at 19:08:40
Ah, ok.
Open Explorer and navigate to \windows\system32.
Edit the Autoexec.nt file.
There are some REM lines, that has to be aktivated, to configure sound for the NTVDM (Virtual DOS Machine).


Report •

#6
December 13, 2008 at 07:33:39
The sound blaster II support was already enabled.

Report •

#7
February 20, 2009 at 13:53:27
Also, (if anyone is still looking at this post) Qbasic uses the pc speaker, not a sound card. It may also be because my computer is an ibm 300gl and the pc speaker is also the speaker for the sound card, windows is not recognizing a pc speaker in the computer since it's already being used.

Report •


Ask Question