Hacker News new | ask | show | jobs
by loomi 3934 days ago
Nice. Is there a way to fetch the main out audio?

It is something I am looking already some time for a multiplatform way to get the main mix stream.

1 comments

The example on the front page includes this line:

    int default_out_device_index = soundio_default_output_device_index(soundio);
Is that what you're looking for? Or something else?
Can I then get everything what is played by all applications on this device. Like fetch and send through the network? (Not pushing audio to the main out.)
You can do that on systems that support it, like JACK and PulseAudio.
So Linux only?

I guess it would be a pretty unique addition to have a method to grab the main mix on Windows, Linux, and OS X in a common way!

Some Windows drivers had a "Stereo Mix" device under Recording to grab the currently playing audio. There's also http://software.muzychenko.net/eng/vac.htm but it really needs a FOSS competitor.
Right, so on systems with "Stereo Mix" device, you could use libsoundio to capture from it.