GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - coreyauger/AudioLoopbackFilter: Directshow Audio Loopback Capture Filter

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
AudioLoopback.cpp
AudioLoopback.cpp
 
 
AudioLoopbackFilter.cpp
AudioLoopbackFilter.cpp
 
 
AudioLoopbackFilter.def
AudioLoopbackFilter.def
 
 
AudioLoopbackFilter.h
AudioLoopbackFilter.h
 
 
AudioLoopbackFilter.sln
AudioLoopbackFilter.sln
 
 
AudioLoopbackFilter.suo
AudioLoopbackFilter.suo
 
 
AudioLoopbackFilter.vcproj
AudioLoopbackFilter.vcproj
 
 
AudioLoopbackFilter.vcxproj
AudioLoopbackFilter.vcxproj
 
 
AudioLoopbackFilter.vcxproj.filters
AudioLoopbackFilter.vcxproj.filters
 
 
AudioLoopbackFilter.vcxproj.user
AudioLoopbackFilter.vcxproj.user
 
 
IAudioLoopbackFilter.h
IAudioLoopbackFilter.h
 
 
README.md
README.md
 
 
dynsrc.h
dynsrc.h
 
 
log.h
log.h
 
 
resource.h
resource.h
 
 

Repository files navigation

AudioLoopbackFilter

Directshow Audio Loopback Capture Filter

Dependencies

Microsoft SDK (Direct Show base classes) http://www.microsoft.com/en-ca/download/details.aspx?id=8279

Overview

This project provides an efficient working audio capture source filter. A “what you hear is what you get”. The code is based on Microsofts IAudioCaptureClient running in “loopback” mode. A feature that has been added since Windows Vista.

Past Work

This code is based on the initial work done by “Maurits” at Microsoft. His work and all the comments containing some of the issues with the code are located here.

Additionally “Roger Pack” wrote the original directshow filter wrapper for Maurits code. Roger’s work can be found here: https://github.com/rdp/virtual-audio-capture-grabber-device. I found that in Windows 8 the filter no longer worked on this project. I also submit a patch that fixed the audio in windows 8.. but the filter graph would pause if there was silence (no audio).

The main issue with these works, is the inability to generate “silence”. This problem is magnified in directshow by not allowing your filter graph to process any video unless there is valid audio (ie silence will pause your graph).

My Solution

I based my filter off the Synth Audio Source, from the directshow example projects. I have removed most of the source that was not needed for my filter to make it easier to understand.

There are a few major differences in my filter from the one I was using before.

  • I generate silence values into the buffer when there is “No” data available from the AudioCaptureClient. This will allow the filter graph to continue to process video frames/mux even if there is no audio.

  • I sync the Reference clock to use the clock time specified by the AudioCaptureClient. This eliminates the usage of the extra threading and BAD sleep statements in the code. The result is a significantly lighter CPU footprint.

Finally

My solution has only undergone a very small amount of testing. Which did include both a Windows 7 and Windows 8 machine. However, if you have any trouble with the filter please contact me and I will be glad to help. Thanks.

Bitdeli Badge

About

Directshow Audio Loopback Capture Filter

Topics

audioc-plus-plusdirectshowfilterfilter-graphsilence

Resources

Readme
Activity

Stars

12 stars

Watchers

5 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.