0
How to play sound in C++
I am writing codes for my project, but I can't add sound. While compiling, it's says "Undefined reference to Playsound@12"
1 Resposta
+ 2
It would actually be a Windows function, and look something like this:
PlaySound("C:\\Users\\Keto\\Desktop\\test1.wav", NULL, SND_FILENAME);
And don't forget to #include <Windows.h>