Hi!
I have this function:
If this function is run in win98, the sound file will not be played. There's always that message "error occured!". Why is that so? Should I initialize sound device? How do I do that, if I have to?Code:void PlaySoundFile (const char *SoundFile) { if (!PlaySound (SoundFile, NULL, SND_FILENAME | SND_ASYNC)) { printf ("Error occured!"); } }
And, one more thing. Will I'll be able to play .mp3 files with this function? If not, which function do play .mp3 files and how to use it.
Thanks!