Playing Media File with C

Discussion in 'C' started by dssr, Jul 6, 2008.

  1. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    Hii can anyone tell me how to play a media file with C, i mean suppose i have a mp3 format file stored in my character is there any way to play that media file by C???
     
  2. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    or if you can tell me how to play the file in DOS that may help too
     
  3. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    from internet i got this code but it's not compiling in my compiler

    Code:
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <windows.h>
    using namespace std;
    int main()
    {
    PlaySound("windowsding.wav", NULL, SND_FILENAME|SND_LOOP);
      return 0;
    }
    PlaySound function does not exist in my compiler
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice