Sep 6, 2017 at 6:53am UTC
How can I have a song play in the background of my program ?
Sep 6, 2017 at 12:52pm UTC
C++ by itself does not assume you have a monitor, or fancy graphics. You need a third-party library that can work with your OS to do this.
If you know C++, SFML is a nice simple, multi-platform library that can play audio.
SDL is another alternative (written in C, compatible with C++), but I have not used it.
You can try that out, or if you just want it on a console on Windows, check this out
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2017 - All rights reserved -
Spotted an error? contact us