this is how you can play wavs/mp3s in a C++ program

This is a discussion on this is how you can play wavs/mp3s in a C++ program within the C++ Programming forums, part of the General Programming Boards category; Okay, first of all you need the appropriate dll, .lib file, and then you need 2 headers and a simple ...

  1. #1
    Shadow12345
    Guest

    this is how you can play wavs/mp3s in a C++ program

    Okay, first of all you need the appropriate dll, .lib file, and then you need 2 headers and a simple cpp file tying everything together.

    basically all you do is in your main source file just declare an instance of CFmod, call CFmod.Init(song name) then call CFmod.playsong

    all very simple

    here is an example, it is taken from the C++ tutorials from www.gametutorials.com
    Attached Files Attached Files

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    What if one isn't using windows?

  3. #3
    Shadow12345
    Guest
    i don't know but i assume the answer is this (as with most software): if you don't have windows, you don't get to use it

    EDIT: sorry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue w/ Guess My Number Program
    By mkylman in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2007, 02:31 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  3. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  4. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 11:58 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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