title: How do I capture the audio of a wpf window or cscore output in c#?
body: <p>I made a music player in wpf using <a href="https://github.com/filoe/cscore" rel="nofollow noreferrer">cscore</a>. Now, I want to add a feature so I can stream the output in real-time (like a radio) to another instance of the music player over internet. I could see how to stream the data later, but first I need to know how to get the bytes of the audio output. I'm asking for help because I'm lost, I've done some research and found nothing but how to stream the desktop audio. That's not a solution, because I want to listen to the same music with some friends while hanging out on Discord, so if I stream the desktop audio, they will listen to themselves besides the music. Any help will be welcome. Thanks in advance!</p>