TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Device Drivers

Notices

Reply
 
Thread Tools Display Modes
Old 29-11-2007, 05:33 PM   #1
Bipin Mistry
Guest
 
Posts: n/a
Audio Steram capturing usinf Filter Driver

Hello,

My task is to capture Audio (mic & Speaker) streams using Filter
Driver.
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,
Speaker)
(Source code from Ctrl2Cap)
status = IoCreateDevice( DriverObject,
sizeof(DEVICE_EXTENSION),
NULL,
FILE_DEVICE_KEYBOARD,
0,
FALSE,
&device );
MSND provided following 3 static defined values which as per me
interact with sound related activity.
- FILE_DEVICE_WAVE_SOUND
- FILE_DEVICE_WAVE_IN
- FILE_DEVICE_WAVE_OUT
Am currently making RnD with FILE_DEVICE_WAVE_SOUND &
FILE_DEVICE_WAVE_OUT.

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

  Reply With Quote
Old 29-11-2007, 05:34 PM   #2
Max Paklin
Guest
 
Posts: n/a
Re: Audio Steram capturing usinf Filter Driver

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.



"Bipin Mistry" <bpnmistry@gmail.com> wrote in message
news:1127382715.271336.47540@g14g2000cwa.googlegro ups.com...
> Hello,
>
> My task is to capture Audio (mic & Speaker) streams using Filter
> Driver.
> 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,
> Speaker)
> (Source code from Ctrl2Cap)
> status = IoCreateDevice( DriverObject,
> sizeof(DEVICE_EXTENSION),
> NULL,
> FILE_DEVICE_KEYBOARD,
> 0,
> FALSE,
> &device );
> MSND provided following 3 static defined values which as per me
> interact with sound related activity.
> - FILE_DEVICE_WAVE_SOUND
> - FILE_DEVICE_WAVE_IN
> - FILE_DEVICE_WAVE_OUT
> Am currently making RnD with FILE_DEVICE_WAVE_SOUND &
> FILE_DEVICE_WAVE_OUT.
>
> 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
>



  Reply With Quote
Old 29-11-2007, 05:34 PM   #3
Bipin Mistry
Guest
 
Posts: n/a
Re: Audio Steram capturing usinf Filter Driver

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:
http://groups.google.com/group/micro...3c647998af91de

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
streams?
OR I will require to move on to DDK samples.

Bipin

  Reply With Quote
Old 29-11-2007, 05:35 PM   #4
Bipin Mistry
Guest
 
Posts: n/a
Re: Audio Steram capturing usinf Filter Driver

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

  Reply With Quote
Old 29-11-2007, 05:37 PM   #5
Max Paklin
Guest
 
Posts: n/a
Re: Audio Steram capturing usinf Filter Driver

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.



"Bipin Mistry" <bpnmistry@gmail.com> wrote in message
news:1127476229.377184.164570@o13g2000cwo.googlegr oups.com...
> 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:
> http://groups.google.com/group/micro...3c647998af91de
>
> 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
> streams?
> OR I will require to move on to DDK samples.
>
> Bipin
>



  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 12:32 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional