VOGONS


First post, by RudestChap

User metadata
Rank Newbie
Rank
Newbie

Hello

I have a bunch of old Qbasic programs that used to play sounds by using the SHELL command in Qbasic and calling a command line wav player (Wav.exe by Webgeeks). Sadly, this wav player doesn't work with my current computer, for some reason it makes the screen all glitchy when I use it from Qbasic.

It was suggested that I use these programs through DosBox, but when I do this, every time the program calls a sound, it doesn't play and the command box prints : "SHELL : Redirect output to nul"

Can someone help?

Reply 1 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Does WAV.EXE works if you run it from the DOSBox prompt?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 8, by RudestChap

User metadata
Rank Newbie
Rank
Newbie

I gave it a try, I couldn't get it to work.

When using the wav.exe command line with the >nul parameter (this is so that it just plays the sound and doesn't display anything, which is what I need... the command line looks like : wav filename.wav >nul), then it does nothing and the Dosbox status window gives me the same error : SHELL:Redirect output to nul

When I don't use the >nul parameter then it doesn't work either, but this time the dos prompt (not the status window) tells me "This is a Win32 program."

Reply 3 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

there is your answer 😀
wav is a windows program. not a dos program.
Maybe they have upgraded their wav.exe ?

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 8, by RudestChap

User metadata
Rank Newbie
Rank
Newbie

I use the same wav.exe file that I used back then, but even though I was in dos mode for my Qbasic program, I suppose it still had Windows in the background somehow (I'm not sure, I'm not too knowledgeable about this).

Is there any alternative? I'm struggling to try and find a way to make my programs work properly again.

Reply 5 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

well there are quite a few audioplayers for dos.
playing a wav file is the most basic operation there is, as the data can be streamed directly to the soundblaster.
So I would try if I were you to find an alternative dos wave file player
Shouldn't be very hard to find.

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 8, by general_vagueness

User metadata
Rank Member
Rank
Member

I remeber seeing one that was actually written in QB (I think it was on qbasic.com), so you could just pass it to that, or compile it and pass it that way, or integrate it into your sound-using programs.
Wondering about compiling? I've had pretty good luck with FreeBasic (although it uses Windows DOS extensions and so the programs it produces won't run under true, plain DOS).

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 7 of 8, by njaydg

User metadata
Rank Member
Rank
Member

Just found this source : Interesting DOS programs

The title says it all, it has quite a few collection of old dos programs.

Have a look around the sound section... 😉

Must try it one of these days! Maybe I'll find my old DOS WAV/MP3 player...

Reply 8 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Edit: Fixed the thread title.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32