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

  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

  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, 01:31 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12: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, 10:58 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM