Discussion:
Capture the Audio Output?
(too old to reply)
l***@gmail.com
2007-08-22 03:51:36 UTC
Permalink
Hi everyone

Wondered how can I capture the audio that goes out on the speakers. I
dont mind writing a device driver, injecting code etc - just do the
job. Any ideas? Any samples out there for anything like that?

Thanks for _any_ ideas
Lior
Scott Amspoker
2007-08-22 05:23:36 UTC
Permalink
Post by l***@gmail.com
Wondered how can I capture the audio that goes out on the speakers. I
dont mind writing a device driver, injecting code etc - just do the
job. Any ideas? Any samples out there for anything like that?
If you're running something other than Vista (such as XP), then there is
no API guaranteed to do that. Popular soundcards (and their drivers) do
support capture from the audio output and it's as easy as connecting the
output to WAVEIN. However, if the soundcard doesn't support it then
you're basically S.O.L.
--
sda_mail Scott | Yields over 30 blasts or
@comcast.net Amspoker | 80 gentle honks per charge!
^ my email |
Robert Walker
2011-02-02 05:03:07 UTC
Permalink
Try this:

http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx

Hope it helps. Just found it after quite a long search. Very little example code for WASAPI e.g. found nothing at codeproject etc. But this code seems to work. At least - the pre-compiled exe in the zip works - only just downloaded it.
Post by l***@gmail.com
Hi everyone
Wondered how can I capture the audio that goes out on the speakers. I
dont mind writing a device driver, injecting code etc - just do the
job. Any ideas? Any samples out there for anything like that?
Thanks for _any_ ideas
Lior
Post by Scott Amspoker
If you're running something other than Vista (such as XP), then there is
no API guaranteed to do that. Popular soundcards (and their drivers) do
support capture from the audio output and it's as easy as connecting the
output to WAVEIN. However, if the soundcard doesn't support it then
you're basically S.O.L.
--
sda_mail Scott | Yields over 30 blasts or
@comcast.net Amspoker | 80 gentle honks per charge!
^ my email |
Post by Robert Walker
I had the same question.
http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx
Just downloaded it and ran the pre-compiled .exe and it does what it says it should do. So looks good. Not yet tried using it myself to do anything but plan to when I get time.
Post by Robert Walker
http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx
Submitted via EggHeadCafe
ASP.NET Generic Cookie Utility Class
http://www.eggheadcafe.com/tutorials/aspnet/e7108c33-1cc6-48ae-9f65-cc391c8b66a7/aspnet-generic-cookie-utility-class.aspx
Robert Walker
2011-02-02 04:59:51 UTC
Permalink
I had the same question.

Eventually found some sample code here:

http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx

Just downloaded it and ran the pre-compiled .exe and it does what it says it should do. So looks good. Not yet tried using it myself to do anything but plan to when I get time.
Post by l***@gmail.com
Hi everyone
Wondered how can I capture the audio that goes out on the speakers. I
dont mind writing a device driver, injecting code etc - just do the
job. Any ideas? Any samples out there for anything like that?
Thanks for _any_ ideas
Lior
Post by Scott Amspoker
If you're running something other than Vista (such as XP), then there is
no API guaranteed to do that. Popular soundcards (and their drivers) do
support capture from the audio output and it's as easy as connecting the
output to WAVEIN. However, if the soundcard doesn't support it then
you're basically S.O.L.
--
sda_mail Scott | Yields over 30 blasts or
@comcast.net Amspoker | 80 gentle honks per charge!
^ my email |
Submitted via EggHeadCafe
Statistics, Probability, Lotteries and Dumb Programmers
http://www.eggheadcafe.com/tutorials/aspnet/041de19a-e704-468f-bd3c-79164fc739f5/statistics-probability-lotteries-and-dumb-programmers.aspx
Robert Walker
2011-02-02 05:01:06 UTC
Permalink
Try this:

http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx
Post by l***@gmail.com
Hi everyone
Wondered how can I capture the audio that goes out on the speakers. I
dont mind writing a device driver, injecting code etc - just do the
job. Any ideas? Any samples out there for anything like that?
Thanks for _any_ ideas
Lior
Post by Scott Amspoker
If you're running something other than Vista (such as XP), then there is
no API guaranteed to do that. Popular soundcards (and their drivers) do
support capture from the audio output and it's as easy as connecting the
output to WAVEIN. However, if the soundcard doesn't support it then
you're basically S.O.L.
--
sda_mail Scott | Yields over 30 blasts or
@comcast.net Amspoker | 80 gentle honks per charge!
^ my email |
Post by Robert Walker
I had the same question.
http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx
Just downloaded it and ran the pre-compiled .exe and it does what it says it should do. So looks good. Not yet tried using it myself to do anything but plan to when I get time.
Submitted via EggHeadCafe
Excel Generate High Quality RoadMaps
http://www.eggheadcafe.com/tutorials/aspnet/3310004f-e1ae-45a7-9bea-7b2b970d1230/excel-generate-high-quality-roadmaps.aspx
Loading...