how can i add sound to my proggie?
yes it is ^FiZ^ again you will be seeing alot of my from now on. I am learning to program by my self and some help from some books and stuff but i cant afford to go to school right now so please be my teachers. anyways I was wondering if I could add sound to a dos console proggie so when they are doing what ever it is playing a sound? also I know how to make winamp play a mp3 but I dont want them to have to have winamp installed and running to play one. Any suggestions?
please post what ever but if you post code please explain what the or each function does. in newbie terms please....lol
if you're new you'll wanna use a library
give me some more info on your current condition (compiler, etc.) and i'll give you a good library
Ok so there are a few options for both of you
MSVC can use Allegro which is an extremely nice and free library (http://alleg.sourceforge.net)
MSVC can also use Windows Media Library or DirectX's Direct Sound... but i don't think you'd wanna go there (nasty stuff if you ask me)
BC5 will have to use the mentioned WML or DX-Sound usually because allegro isn't compatible with it (I used BC5 for 6 months, but i parted with it for the awesome power of allegro (http://mingw32.org is what i use now)
There are other options, like writing a sound library (tough work) or using some other sound library which is less popular, just search on google for those if you're interested.