slayerIQ
slayerIQ

Reputation: 1486

Getting sound directly from hardware with C#

Is there a way to get the sound that the sound card is playing directly from the hardware?

Upvotes: 3

Views: 1808

Answers (4)

Kurru
Kurru

Reputation: 14331

NAudio is a nice API for sound programming in C#. I'm only discovered it myself, but it might be able to record the output, though probably not...

http://www.codeplex.com/naudio

Upvotes: 2

John Knoeller
John Knoeller

Reputation: 34188

I presume that this is Windows since you are using C#. Ignore this if you are using mono.

There is no officially supported way to do this in Windows. Some sound cards have a setting in the mixer that will set the wave record input to 'what you hear'. So on those cards, you could just set that setting and then record audio.

edit:

I should add that if your driver doesn't have built in support for recording what it's outputing, then you will need to write or purchase a driver that does. I've heard that TotalRecorder can do this.

Upvotes: 0

jspcal
jspcal

Reputation: 51924

The most general way is Total Recorder which has a COM interface.

Upvotes: 0

Peter
Peter

Reputation: 38525

some sound cars can select the output sound as mic, if that is acceptable then you could just google how to use the microphone...

Upvotes: 0

Related Questions