Discussion Locked

Qbasic - Background Wave Player

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to make a program in Quick Basic where I have the soundblaster play music in the background while the main is going in the foreground. I want this so that the music sounds nice and not choppy. I dont want a file that is so long and hard to understand. I know there are files called dmaplay.bas and so on, but they contain too much information and I am unable to figure out how they do it. so where is a short program that can play sound in the background? Remember, it must come from thesound blaster, not from the speaker. The more explanation you give, the better chances of success in getting the points you have.

3 replies

by lo

Hi - No specifics on your solution. Some time back I did a base CD Player using VB (v3 or os as I rememober). That wasn't too dificult but the MIDI control had all of the required functions, I only needed to activate /call/set property. From that, and to do in QBASIC, you have a bit of a task as you will likely have to deal with all of the low level procesing and error handeling. You may be able to copy the dmaplay.bas and modify as sub probram to perform the functions from your QBASIC (or create a file of commands and feed it to dmaplay.bas). May be some license issues for dmaplay.bas.

Might contact SoundBlaster and ask them if you can obtain a copy of the Technical Reference programming manual for their card(s). That should giveyou specifics about how to deal with the card (they may not give you this (propritarty) and likely will charge (a fair amount) if they will provide a copy.

You may have to do some assembler functions or subroutines to get reasonable performance or to deal with some issues that are a bit beyond QBASIC abilities in an efficient manner.

by mike (from canada)

I have already tried your suggestions before. Reducing the sub did work for me. but I actually got a background wave player working before I saw this answer which is why I didnt "accept" it. any other information you gave me leads me nowhere.

This discussion is closed to new replies.