Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is awesome.

How would something like this she made? I had a similar idea (but mixing entirely different types of streams) and did a whole bunch of searching and couldn’t find a way to mix two external streams.

Do you record/buffer the streams and write local chunks to stream from? Or is it more like “bounce this stream but mix some local audio files over it”?



I guess you could always play two streams at once and let the users audio device sort it out.


That's exactly what is happening here. There are two audio streams played by your browser, one being an mp3 file on the server (the lofi track) and the other coming from liveatc.net.


You have to decode both streams into straight samples and add them together, this can be done with a small memory buffer.

You could also make a custom audio widget that played two streams at once and the local audio mixer will handle it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: