locked
DirectShow Audio Source Filter RRS feed

  • Question

  • I would like to create a DirectShow audio source filter to be used by chat applications (like windows messenger, Skype, Yahoo! etc.)

    I created the filter and registered it as DirectShow audio input device. The filter enumerated under this category from graphedit, but can't be found under as an option of any of the above applications.

    Is there any specific interfaces to implement to achieve this?

    Is this requires the above applications to use DirectShow technology to be able to communicate with the filter?

    Thanks

    Saturday, June 12, 2010 10:30 PM

Answers

  • As Roman said, creating a DirectShow filter only works if the application uses DirectShow instead of a lower-level API (waveIn, DirectSound or, since Vista, WASAPI).

    Even if the application uses DirectShow, your filter may not work in certain applications unless it implements additional optional interfaces the application expects because the stock filters support them.

    Your best bet is probably to try and write a waveIn user-mode driver (see the old 16-bit Video For Windows 1.1e SDK and the latest Windows DDK for documentation and samples on how to write a waveIn input DLL).

    If that fails, the only option left is to write a virtual kernel-mode audio driver (see the Windows DDK).


    MVP :: DirectShow / MediaFoundation http://www.riseoftheants.com/mmx/faq.htm
    Sunday, June 13, 2010 2:47 AM

All replies

  • The mentioned application might be using other APIs than DirectShow and your custom audio source is not accessible using those. The primary audio API since Windows Vista is WASAPI: http://msdn.microsoft.com/en-us/library/dd371455%28VS.85%29.aspx
    http://alax.info/blog/tag/directshow
    Saturday, June 12, 2010 10:33 PM
  • As Roman said, creating a DirectShow filter only works if the application uses DirectShow instead of a lower-level API (waveIn, DirectSound or, since Vista, WASAPI).

    Even if the application uses DirectShow, your filter may not work in certain applications unless it implements additional optional interfaces the application expects because the stock filters support them.

    Your best bet is probably to try and write a waveIn user-mode driver (see the old 16-bit Video For Windows 1.1e SDK and the latest Windows DDK for documentation and samples on how to write a waveIn input DLL).

    If that fails, the only option left is to write a virtual kernel-mode audio driver (see the Windows DDK).


    MVP :: DirectShow / MediaFoundation http://www.riseoftheants.com/mmx/faq.htm
    Sunday, June 13, 2010 2:47 AM