Qbasicnews.com

QBasic => QB Discussion & Programming Help => Topic started by: Rokkuman on January 28, 2003, 12:22:37 AM



Title: A question about SBMIDI.
Post by: Rokkuman on January 28, 2003, 12:22:37 AM
This might be a lazy question to ask, and I'm sure I could figure it out myself, but I got my DOS sound to work, and I was wondering, if I use SBMIDI and SBSOUND(I think that's what it's called) how do I get them to play sounds, are there other libs involved, because if I can get this to work, there just might be voice samples in Cobra, and I think that would just be cool!


Title: A question about SBMIDI.
Post by: na_th_an on January 28, 2003, 12:01:32 PM
SBMIDI and SBSIM just install an interrupt you can use to communicate with a TSR which plays midi files. In order to do that, you must know how to use these interrupts (&H80 and &H81). Then comes QMidi. QMidi is just a library of SUBs and FUNCTIONs which provide a easy interface to communicate with SBMIDI TSR.

In sum: You need QMidi to use SBMIDI to play MIDIs. No digital sound here. You could also look for info about SBMIDI and code your own routines, but I'd suggest you to use QMIDI ;).


Title: A question about SBMIDI.
Post by: Hexadecimal Disaster on January 28, 2003, 04:10:33 PM
Maybe Megaman is talking about these WAV/VOC command-line players found in the SoundBlaster directory, too. Using these things is a big no-no, (lacks versatility, same problem as loading TSRs inside QB) and that kind of proggies only work on SoundBlaster cards, not even SB-compatibles.

If you talked about SBMIDI / SBSIM couple, well, Nathan already answered you.  :wink: