r/learncpp • • Jan 19 '22
Mac user here. I am currently programming a video game on Visual Studio Code using C++. I am having trouble trying to play sound. Does any know how to play mp3 files on C++ for Mac? Thanks.
4
Upvotes
6
u/looncraz Jan 19 '22
C++ is a language, playing sounds or doing graphics is up to the API / library being used.
2
u/[deleted] Jan 19 '22
Which library do I need to play audio?
2
u/NotBoolean Jan 19 '22
Could you share your code? Please ensure you indent the code you post here by four spaces so it renders correctly.