Kevin Wang
Kevin Wang

Reputation: 3330

XNA - Reading Directly from Speaker Output on Windows

I was wondering if it is possible to read speaker output from XNA. For instance, if the user plays a song via Spotify or Youtube, the application can read the output stream and get the spectrum data. My platform is Windows.

Thanks,

Kevin

Upvotes: 0

Views: 224

Answers (1)

Brad
Brad

Reputation: 163488

Unfortunately, these days it depends on the sound card/driver. If the "stereo mix" pin (as it is typically, but not always, named) is available for recording from, then yes. If not, no.

The only way around that is to use a loopback sound driver.

Upvotes: 1

Related Questions