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"

13th Nov 2016, 11:00 AM
Nahid Ibne Anwar
Nahid Ibne Anwar - avatar
1 Respuesta
+ 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>
13th Nov 2016, 11:15 AM
Keto Z
Keto Z - avatar