playing wav or midi files

This is a discussion on playing wav or midi files within the C++ Programming forums, part of the General Programming Boards category; I'm trying to just make it something like this .. . Press 5 to play a sound.... 5... (sound plays) ...

  1. #1
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31

    playing wav or midi files

    I'm trying to just make it something like this .. .

    Press 5 to play a sound....
    5...
    (sound plays)

    How could I do this?
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    i answered this question on another topic just yesterday. anyways, if youre in windows and dont care much for portability, there are some win32 api functions that play wavs. alternatively, you can use an api or inline asm.

  3. #3
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31
    repost what you posted.. I searched for it but didn't find anything .
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    Originally posted by Flikm
    i answered this question on another topic just yesterday. anyways, if youre in windows and dont care much for portability, there are some win32 api functions that play wavs. alternatively, you can use an api or inline asm.

  5. #5
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31
    i meant the one you talked about
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    LMAO! That's the funniest thing I've heard today...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    That was funny. Good one, Flikm.

    And, smokeybear, you must be grossly mispelling words when you search or you're trying to search for too many words simultaneously.

    I went to the boards search page told it to look for "sound" and username "Flikm" and got this from a few months back.

    In that post I answered the question in detail including what header file to include and what library file to link. That should be all you need if you're not worried about porting to *nix systems etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Playing sound files...
    By Yuri in forum C++ Programming
    Replies: 24
    Last Post: 05-27-2006, 06:22 AM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  3. Playing/stopping midi files
    By Dark Nemesis in forum C++ Programming
    Replies: 1
    Last Post: 11-18-2003, 02:09 PM
  4. Playing a Midi. (win32 console) (MSVC++)
    By knave in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 11:40 AM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM

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