DEV Community

Jérémie Astor
Jérémie Astor

Posted on

What would be the simplest way to output sound to browser from a C program?

Getting gwion to the browser

Some context

I made this progamming language to help in some of my musical projects. A few days ago I made a Repl. I think I have a way to provide drivers and libraries to it (leveraging github releases).

The problem

As of now, I have no driver that could send the sound to the browser. I guess I could easily hack something around libsndfile to provide say, a .wav, but it would really be better if I could have some realtime output to web-browser.

Do you have an idea?

So I'm asking here, as many DEV users have a good knowledge of web techniques and on my side I know, well, music and C.

Discussion (0)