Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Playing Media File with C (http://www.go4expert.com/forums/playing-media-file-c-t11889/)

dssr 6Jul2008 12:36

Playing Media File with C
 
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???

dssr 6Jul2008 12:43

Re: Playing Media File with C
 
or if you can tell me how to play the file in DOS that may help too

dssr 6Jul2008 13:04

Re: Playing Media File with C
 
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


All times are GMT +5.5. The time now is 00:31.