Capturing an applications audiostream

Hey there :wave: Im new to the audio field and can't seem to figure this out on my own :thinking:

Im looking for a way to capture the sound (as a stream) of a single other running another application, on windows. My end goal is to eventually denoise/recognize patterns in that stream, and publish events as they occur, but for now, just capturing the audio stream and logging values is my first goal

I find it hard to find a suitable crate to capture audio from another application. As the terminology is unfamiliar to me Im probably searching for the wrong terms. I wound be very grateful for any initial pointers of crates, terms to search for, or just something to set me off in the right direction :pray:

1 Like

I'm still a bit of a novice but I'll try to perhaps point you in the right direction. As far as I'm concerned, this is very OS dependent. I've played around with bit-perfect playback on Windows systems before, which was made possible by the windows crate that exposed Win32 to Rust. Pretty sure you can grab an audio stream from an application using Win32, if you're using Windows, that is. Though navigating the windows crate was a bit tricky, and what helped me out the most was reading the C++ documentation from Microsoft and adapting it to Rust. Good luck :slight_smile:

1 Like