Playing Media File with C

dssr's Avatar, Join Date: Feb 2008
Go4Expert Member
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???
0
dssr's Avatar, Join Date: Feb 2008
Go4Expert Member
or if you can tell me how to play the file in DOS that may help too
0
dssr's Avatar, Join Date: Feb 2008
Go4Expert Member
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