Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble.
The coding below works, it just doesn't play the whole song. It plays around 10 seconds of it, then stops. Does anyone have any suggestions?
I am using windows XP, and Dev C++
And apologies for the grammatical error of "it's"
Thanks guys!
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
PlaySound("888.wav", NULL, SND_FILENAME|SND_LOOP);
return 0;
}