Audio Steram capturing usinf Filter Driver

Discussion in 'Windows Vista Drivers' started by Bipin Mistry, Sep 22, 2005.

  1. Bipin Mistry

    Bipin Mistry Guest


    My task is to capture Audio (mic & Speaker) streams using Filter
    To understand Filter Driver architecture I have used Ctrl2Cap sample
    and many other samples available with MSDN and on the net. Am currently
    using source code of Ctrl2Cap sample Filter Deriver as a base for my
    Audio Filter Driver architecture.

    My Question:
    1. What can be replaced with the FILE_DEVICE_KEYBOARD parameter in
    following IoCreateDevice() function to capture Audio Streams(Mic,
    (Source code from Ctrl2Cap)
    status = IoCreateDevice( DriverObject,
    &device );
    MSND provided following 3 static defined values which as per me
    interact with sound related activity.
    Am currently making RnD with FILE_DEVICE_WAVE_SOUND &

    2. With the above regards. What can be appropriate replacement for
    (\\Device\\KeyboardClass0) string in following source code that is
    needed to be converted to Unicode string to be passed to
    RtlFreeUnicodeString() function.
    (Source code from Ctrl2Cap)
    sprintf( ntNameBuffer, "\\Device\\KeyboardClass0" );
    RtlInitAnsiString( &ntNameString, ntNameBuffer );
    RtlAnsiStringToUnicodeString(&ntUnicodeString, &ntNameString, TRUE);
    RtlFreeUnicodeString( &ntUnicodeString );

    I am using following:
    for Wave Out :
    sprintf( ntNameBuffer, "\\Device\\AudioOut" );
    for Sound :
    sprintf( ntNameBuffer, "\\Device\\Sound0" );
    sprintf( ntNameBuffer, "\\Device\\Snd0" );

    can any one please guide me as I think so I am stuck up with the basic
    driver object creation area. As this is new area to me and specifically
    Audio is new area and am not been able to get much help or the sample
    for sound recording using filter device driver.

    Thanks a lot in advance.
    Bipin Mistry, Sep 22, 2005
    1. Advertisements

  2. Bipin Mistry

    Max Paklin Guest

    Search archieves. The topic of filtering audio stack has been discussed
    multiple times in the past.
    The summary is that you can't do this reliably.

    -- Max.
    Max Paklin, Sep 23, 2005
    1. Advertisements

  3. Bipin Mistry

    Bipin Mistry Guest

    Hello Max,

    I have tried to search on [filtering audio stack] with local group as
    well globally on google grous.
    Results are not as expected by me... as am not getting quite key tips
    that can guideme to develop Audio Filter Driver for Windows 2000 OS.
    Yesturday I have gone through one of the discussion at following link:

    But as the discussion is closed am not been able to get any info.. As
    pr me this is the nearest discussionto my needs.
    Now am trying to understand the DDK samples that are listed in the
    above artilce.

    Can you please guide me
    Using Ctrl2Cap source code as a base for filter driver architecture, am
    I on right track to create Audio Filter Driver to record IN & OUT
    OR I will require to move on to DDK samples.

    Bipin Mistry, Sep 23, 2005
  4. Bipin Mistry

    Bipin Mistry Guest

    I am ready to make deal with any one who can provide me tech support or
    the source code...

    PS: Service Contract says that I can not outsource. So please do
    concidure the same.

    - Bipin
    Bipin Mistry, Sep 24, 2005
  5. Bipin Mistry

    Max Paklin Guest

    In case you missed what I said in the previous posting I repeat it again.
    Today there is no reliable way to do what you want to do. Period.
    All you can do is hack, but don't expect my help with that.

    -- Max.
    Max Paklin, Sep 26, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.