how can i add sound to my proggie?

This is a discussion on how can i add sound to my proggie? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; yes it is ^FiZ^ again you will be seeing alot of my from now on. I am learning to program ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    3

    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

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    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

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    3

    Smile this is what im using

    im using visual c++ compiler and if you wanna see my code its real simple. go to http://futuretech.dynu.com/comptest.c its updated as i do it so you will see the current version.

    thank you

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    17
    Hi, Sorry that I can't help U.. I'm posting this message because I want to know how to paste sound, too... I'm usig Borland C++ 5.02 and T.assembler 5 ... something ......something..... thanx in advance

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    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.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    3

    Thank You!!!

    thank you i hope i can figure this one out ill be reposting if i can thankz again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help needed Please
    By jereland in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 05:30 AM
  2. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 04:33 PM
  3. Sound Recorder work...Advice me.
    By loobian in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-14-2003, 09:58 PM
  4. Can somebody test this code please
    By andy bee in forum C Programming
    Replies: 6
    Last Post: 10-09-2001, 04:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21