filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

Capture single app sound #379

Closed Eliot-Ness closed 5 years ago

Eliot-Ness commented 5 years ago

Hi all, I'm currently trying to capture the sound of a single application and then replay it live. Is there a way to do so using CSCore? Managed to do it with my microphone but can't do it with a single app (like chrome or smthg). Thanks in advance!

DanielGilbert commented 5 years ago

Hi all, I'm currently trying to capture the sound of a single application and then replay it live. Is there a way to do so using CSCore? Managed to do it with my microphone but can't do it with a single app (like chrome or smthg). Thanks in advance!

This is not possible, because WASAPI doesn't offer an endpoint to attach to the loopback before the mixing. I don't know if it's on purpose, or if they simply forgot it.