Try ensuring that you're passing the right kind of variable, by wrapping the string as follows:
PlaySound(TEXT("TardisTest1.wav"), NULL, SND_FILENAME | SND_ASYNC);
The project directory is not guaranteed to be the working directory of the executable. Try giving an absolute path (e.g. "C:/TardisTest1.wav").
Also, PlaySound gives a return value. Check that value to see if the function was successful.
Do you hear any sound at all? If the function can't find the file, you should hear the default sound.
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
"I have been using DEV-C++ ever since I was 10 years old"
That makes me wince. We don't say it's bad just for the fun of it. It really is bad. Just because you've learned how to work around all the problems doesn't mean you can't get something better.
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
Of course, of course. It's entirely your choice to use, for example, a compiler that is not C++ standard compliant. Be aware that if you ever have to work with another compiler, you might find that your code stops working. It is possible to continue using Dev-C++ and swap out the compiler for a better one, so that's always an option.
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117