Page 1 of 1
newbie needs help!
Posted: Mon May 22, 2006 8:48 pm
by QBbeginner
Hi i dont like to disturb people but you all seem nice so i started qith QB a week ago, and have qb 3.0 qb 4.5 qb 7.1 = qbx?
i am wondering how to play a sound file from Quickbasic.
is there a way to run it internally or kinda forward the sound file to windows media player
or other sound player?
hope you help me soon.
/ Wondering Beginner
Posted: Mon May 22, 2006 10:59 pm
by buff1
It may depend on the operating system you are running as to how well
it will work. Win 95,98 seem to work well with some of the sound routines
written for QB. (assuming you are meaning through a sound card or
embeded motherboard sound). Subsequent versions, ME, XP and probably
2000, NT dont seem to work as well. These routines I had good luck with
small sound files like chord.wav etc but not so good with larger files.
An example of a sound routine can be seen in my instald7 and instald6 programs (7 is just an update of 6). It's available on several web sites.
Before windows up through MS-DOS 5 even voice was available through the computer speaker though not as good, of course, as the current sound card technology.
You might want to stick with play or sound statements or shell as you suggested to media player or some other. Seems like there was a playsound or something in windows but I dont recall the exact name.
http://thunder.prohosting.com/oasys/frameex1.htm
Posted: Wed May 31, 2006 9:04 am
by QBbeginner
Posted: Wed May 31, 2006 3:45 pm
by buff1
I'd say it will be difficult if not impossible to get it to run in background.
If you use shell it will wait until the program returns so that wont help.
On XP people have had numerous problems with QB. Since it is 16 bit,
and win is 32/64 bit and different in other ways, i would really suggest you
go the windows route.
There are some free windows compilers out there. You might check the
posts, because I don't recall the names of them at the moment.
Personally, I am now a PowerBasic for windows advocate and they do have a console version that has many of the QB type statements making
many programs easy to convert. As for graphics, it would be a little more difficult in PBcc (console compiler) because you will have to relearn doing gaphics. And it is not free though very reasonable.