hi, i have written this code.
#include<iostream>
#include<windows.h>
#include<mmsystem.h>
#include<stdlib.h>
using namespace std;
int main (char argc)
{
PlaySound("TardisTest1.wav", NULL, SND_FILENAME | SND_ASYNC);
system("pause");
return 0;
}
and for some reason, when the program runs, all it does is system("pause); and it doesnt play the sound. I have my sound file included in the folder of my project. any solutions?