Ask coding questions

← Back to all posts
Sound with c++
SceptriArt (0)

Does anyone of you know how to get sound working with c++? I've seen it done with python and flask and am wondering if I could do the same with c++.

I've had kind of a cool idea for a jam entry and now I'm stuck because I didn't have time before, so when I got to it yesterday I quickly hit this problem.

Thanks in advance

Answered by mwilki7 (623) [earned 5 cycles]
View Answer
mwilki7 (623)

I believe it's because only the machine running the program plays the sound.
The text you're seeing in the repl output console is their machine's output routed to your browser. You could set up some sort of server with C++, send it to your browser as a client and play sound thru the browser that way but that's a bit more complicated compared to HTML 5.