Download the Windows Driver Kit and run Kernel Streaming Studio – KsStudio.exe.
Do you see your filter factory in the list of KSCATEGORY_AUDIO filter
factories? If so, good; if not, you will need to fix that before you go further.
Open the Sound control panel. Do you see an audio endpoint on either the
Playback tab or the Recording tab for your device? If so, good; if not, you
will need to fix that before you go further.
The Hardware Logo Kit has a bunch of tests in it for audio drivers; these may
or may not be of help. Some of them will find your device even if it doesn’t
show up in the Sound control panel.
From: 若水<mailto:shlikewater@xxxxxxxxx>
Sent: Friday, August 12, 2016 4:03 PM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: avstream audio-only streaming
Dear Tzung-Dar Tsai:
Thank you for your help. I tried KSNANME_Filter guid, and matched it in INF
file. But, I cannot find my device in sound management. Could you give me more
instructions? Thanks. Do you have avstream audio-only streaming source code? If
you have it, could you send it to me? Thank you.
Best Regards,
Shang Jing
2016-08-12 18:55 GMT+08:00 Tsai Tzung-Dar
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>>:
Hi
I am not sure but I believe the filed ReferenceGuid in KSFLTER_DESCRIPTOR
should not be NULL. Please reference to
https://msdn.microsoft.com/en-us/library/windows/hardware/ff562553(v=vs.85).aspx
. You also need to describe it in your INF file.
BR,
Tzung-Dar Tsai
________________________________
寄件者: 若水 <shlikewater@xxxxxxxxx<mailto:shlikewater@xxxxxxxxx>>
收件者: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
寄件日期: 2016/8/12 (週五) 5:46 PM
主旨: [wdmaudiodev] Re: avstream audio-only streaming
Dear Tzung-Dar Tsai:
Thank you for your help. I attached filter descriptor of my driver. Could you
help us to check it? Thanks.
const
GUID
CaptureFilterCategories[CAPTUREFILTERCATEGORIESCOUNT] = {
STATIC_KSCATEGORY_AUDIO,
STATIC_KSCATEGORY_RENDER,
STATIC_KSCATEGORY_CAPTURE
};
const
KSFILTER_DESCRIPTOR CaptureFilterDescriptor = {
&CaptureFilterDispatch, //Dispatch Table
NULL, //Automation Table
KSFILTER_DESCRIPTOR_VERSION, //SABINEASIOAUDIOVERION, //Version
0, //KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING, //Flags
NULL, //&KSNAME_Filter, //Reference GUID
DEFINE_KSFILTER_PIN_DESCRIPTORS(CapturePinDescriptor), //Pin Descriptor
DEFINE_KSFILTER_CATEGORIES(CaptureFilterCategories), //Pin Categories
DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL, //Node Descriptor
DEFINE_KSFILTER_DEFAULT_CONNECTIONS, //Connection
NULL //Component ID
};
2016-08-12 17:37 GMT+08:00 Tsai Tzung-Dar
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>>:
Hi
With out source code I do not know how to help you. Because in you describe I
think your driver is not register as an audio driver. Otherwise you should can
enum Audio Capture source filter in DirectShow filter list.
Anyway which code base you reference to? Do you reference to WDK sample avshws?
BR,
Tzung-Dar Tsai
________________________________
寄件者: 若水 <shlikewater@xxxxxxxxx<mailto:shlikewater@xxxxxxxxx>>
收件者: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
寄件日期: 2016/8/12 (週五) 4:56 PM
主旨: [wdmaudiodev] Re: avstream audio-only streaming
Dear Tzung-Dar Tsai:
Thank you for your help. Because I will add some new functions for my device, I
have to develop a new driver. About my avstream miniport, I cannot find it in
audio capture sources filter and audio renders filter. Of course, If I want to
find my device in audio capture source filter, I must registry
CLSID_AudioInputDeviceCategory interface. However,
CLSID_AudioInputDeviceCategory does not included in avstream. I don't know how
to registry the interface in avstream driver. And, I think that because there
is not CLSID_AudioInputDeviceCategory interface, I cannot find my device in
sound management. Could you help me? Thanks.
Best Regards,
Shang Jing
2016-08-12 16:41 GMT+08:00 Tsai Tzung-Dar
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>>:
Hi
Sure avstream support audio-only streaming. The default USB Audio Driver
"USBAudio.sys" is an avstream driver. Why you need to develop driver for usb
audio device? Does you device do not follow USB Audio Class 1.0 spec? If you
are develop a driver for USB Audio Class 2.0 Device. There are a company have
USB Audio Class 2.0 Device driver. You can reference to follow URL:
USB Audio 2.0 Class Driver for
Windows<http://www.thesycon.de/eng/usb_audiodriver.shtml>
[image]<http://www.thesycon.de/eng/usb_audiodriver.shtml>
USB Audio 2.0 Class Driver for
Windows<http://www.thesycon.de/eng/usb_audiodriver.shtml>
USB Audio 2.0 Class Driver and Development Tool for Windows 10, 8.1, 8 and 7.
檢視於 www.thesycon.de<http://www.thesycon.de/eng/usb_audiodriver.shtml>
Yahoo 預覽
Their driver also develop by AVStream miniport.
BR,
Tzung-Dar Tsai
________________________________
寄件者: 若水 <shlikewater@xxxxxxxxx<mailto:shlikewater@xxxxxxxxx>>
收件者: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
寄件日期: 2016/8/12 (週五) 3:54 PM
主旨: [wdmaudiodev] avstream audio-only streaming
Hello, I am reading msdn. msdn said that avstream supports video-only streaming
and integrated audio/video streaming. Does avstream support audio-only
streaming? If it does not support audio-only streaming, how do I develop an
audio driver for usb audio device? Thanks.
Best Regards,
Shang Jing