Sound in console?

Can I play sound in console app? If yes, Can I repeat that sound till the program end?
closed account (z1CpDjzh)
Yes... Yes.... do you need code? but its platform specific so if ya need code you need to tell me your OS.
Last edited on
Check out this link.Hope it helps you.
http://www.cplusplus.com/forum/beginner/4115/
Thanks, guys. Especially Pterodactyl. I'm finally able to make it work.
By the way, I'm using Windows 7. It will be great if you guys can give me the source code for PlaySound function.
You don't need source code for the PlaySound function if you are on Windows - just add the following line to the top of your file and off you go:
#include <Windows.h>
Topic archived. No new replies allowed.