Qbasicnews.com

Full Version: Loading pictures and music
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I load a picture as a backgrounf into qb?
Also how can I load music as a sound track ar as effect. What file extension do I nedd, and how can I open it?

Thanks for any help
There are ways to load BMP, GIF, PCX etc in QB using Pure-QB, but usually it is a waste of time coding these routines. You can get libraries like CosmoX or DirectQB or UGL, which contain a lot of graphical routines. You can get them from http://www.harsoftware.cjb.net look under downloads in Libraries.

For the music, well, background soundtrack is hard unless the bg sound is midi, then it would be possible. But I think the best for you is to get a sound library like DS4QB++ or BWSB. I don't know any exact location of them, but you can surely find them using google as they are very popular.
UGL has EVERYTHING for you. Download it NOW or perish!!!!!!
Andy, all these are SVGA libs. You will have to use SVGA modes since in normal VGA modes you have few colors.
Try Future.Library it's commands are simpler(according to me). Also I find it more stable atleast on my comp.

You can download it at my website:http://www.basix.8m.net
Also there happens to be a little tut on how to build the lib and use the basic commands. I think you will find it useful.
Spam Thread!! :rotfl:

For a picture in the background: http://qbnz.com/pages/downloads/graphics/anigif99.zip will load animated .gif images into QB.

or: http://qbnz.com/pages/downloads/graphics/jpegv43.zip will load a .jpg in Smile

For sound, you could try QMIDI: http://qbnz.com/pages/downloads/sound/qmidi10.zip
Thanks for links, Oracle. I will use Smile