Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

How do I get audio file format in audio filter driver?

microsoft.public.windows.vista.music pictures video






Speedup My PC
Reply
  #1 (permalink)  
Old 11-07-2008
Novice
 

Posts: n/a
How do I get audio file format in audio filter driver?
Before writing, I'm not skilled in English. So you may have difficulty
understanding my questing. ^^

Currently, I'm making audio upper filter driver. And I meet a problem.

What I need Now is format of audio data that is sent to audio driver. So I
monitor IRPs sent to audio driver by WinDDK tool KsStudio.

In my project, I limit audio data to loop streaming, type of PCM.

this is result of monitoring IRPs when starting audio file

0.00836990 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY OBJECT WAS NOT FOUND
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00620492 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00199498 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00088499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY OBJECT WAS NOT FOUND
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00124998 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00072999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00087499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00140498 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY INVALID DEVICE REQUEST
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00068999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00101999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY INVALID DEVICE REQUEST
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00064999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00160498 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.03943951 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CHANNEL_CONFIG, 0x10000002>
0.00389495 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Pin,
KSPROPERTY_PIN_CINSTANCES, 0x00000001>
0.00084499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Pin,
KSPROPERTY_PIN_CINSTANCES, 0x00000001>
0.00241497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CHANNEL_CONFIG, 0x10000002>
0.05519931 Realtek HD Audio output IEXPLORE.EXE:0x086A8 IRP_MJ_CREATE
SUCCESS
0.00460994 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.14662316 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.03809952 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_MIX_LEVEL_CAPS, 0x10000001>
0.00210497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY BUFFER TOO SMALL <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00915989 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000002>
0.00255997 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000002>
0.00297996 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_QUALITY, 0x10000002>
0.00431995 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.00302496 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.00025500 Realtek HD Audio output System:0x086A8 IRP_MJ_CLEANUP INVALID
DEVICE REQUEST
0.20170248 Realtek HD Audio output IEXPLORE.EXE:0x086A8 IRP_MJ_CLOSE
SUCCESS
0.00863489 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY OBJECT WAS NOT FOUND
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00590493 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00203497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00097499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY OBJECT WAS NOT FOUND
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00128998 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00075499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00088999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00159498 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY INVALID DEVICE REQUEST
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00080999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00129998 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY INVALID DEVICE REQUEST
<KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00068999 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00153498 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CPU_RESOURCES, 0x10000001>
0.00982988 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CHANNEL_CONFIG, 0x10000002>
0.01038487 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Pin,
KSPROPERTY_PIN_CINSTANCES, 0x00000001>
0.00103499 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Pin,
KSPROPERTY_PIN_CINSTANCES, 0x00000001>
0.00584493 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_CHANNEL_CONFIG, 0x10000002>
0.05830927 Realtek HD Audio output IEXPLORE.EXE:0x086A8 IRP_MJ_CREATE
SUCCESS
0.00559493 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.00240497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.00540493 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_MIX_LEVEL_CAPS, 0x10000001>
0.00208497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY BUFFER TOO SMALL <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000200>
0.00347996 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000002>
0.00242497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_VOLUMELEVEL, 0x10000002>
0.00264497 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_QUALITY, 0x10000002>
0.00000000 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_WRITE_STREAM
0.00421495 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000002>
0.16814290 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Connection,
KSPROPERTY_CONNECTION_STATE, 0x00000002>
0.19712253 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.03210960 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.11874852 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.01353483 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.03712454 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.01375983 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>
0.03274959 Realtek HD Audio output IEXPLORE.EXE:0x086A8
IRP_MJ_DEVICE_CONTROL IOCTL_KS_PROPERTY SUCCESS <KSPROPSETID_Audio,
KSPROPERTY_AUDIO_POSITION, 0x00000001>

In above result of monitoring IRPs, I found that Neither
KSPROPERTY_CONNECTION_DATAFORMAT IRP nor setting data format IRP is received.
And so how does audio driver know data format? or Is it possible that
without format information, audio driver play audio data?

I suspected IOCTL_KS_WRITE_STREAM IRP. but that IRP just send a
KSSTREAM_HEADER struct and I can't find any format information in that struct
except just PCM data.

How do I get audio file format in audio filter driver? If you know that,
Please answer.^^

Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated driver: IDT Hi Def Audio CODEC: Disabled my Audio device ! Per Nermo microsoft.public.windowsupdate 17 05-11-2008 14:34
Article ID: 930883 Programme, dass Audio wiedergibt, funktionieren nicht mehr und doppelte Eintrńge werden in der Format-Audio-Liste Default Format in Windows Vista angezeigt KBArticles German 0 10-22-2007 21:20
Article ID: 930883 Programs that play audio stop working and duplicate entries appear in the Default Format audio format list in Windows Vista KBArticles English 0 10-22-2007 20:00
Realtek AC'97 audio driver provided by Microsoft. Audio error MCE =?Utf-8?B?R1Q=?= microsoft.public.windows.vista hardware devices 1 03-03-2007 22:54
Does Vista USB audio driver forced a digital filter? microsoft.public.windows.vista hardware devices 0 12-06-2006 23:56




All times are GMT +1. The time now is 22:56.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120