X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=drivers%2Fwdm%2Faudio%2Flegacy%2Fwdmaud%2Fwdmaud.h;h=49f01f2fbd1aef35d7c2eeb7569717711403f1c3;hp=d1d2bccd359f382ae6b1c4c1ceb8c0c449a485b5;hb=c51df789e869379a515d94c66da152c5b26660ff;hpb=bb519801e29effa8231b34f82088d72989c0e82e diff --git a/drivers/wdm/audio/legacy/wdmaud/wdmaud.h b/drivers/wdm/audio/legacy/wdmaud/wdmaud.h index d1d2bccd359..49f01f2fbd1 100644 --- a/drivers/wdm/audio/legacy/wdmaud/wdmaud.h +++ b/drivers/wdm/audio/legacy/wdmaud/wdmaud.h @@ -1,16 +1,8 @@ -#include -#include +#ifndef _WDMAUD_PCH_ +#define _WDMAUD_PCH_ + #include -#include -#define NDEBUG -#include -#include -#include #include -#include -#include -#include -#include "mmixer.h" #include "interface.h" @@ -19,6 +11,7 @@ typedef struct PMDL Mdl; ULONG Length; ULONG Function; + PFILE_OBJECT FileObject; }WDMAUD_COMPLETION_CONTEXT, *PWDMAUD_COMPLETION_CONTEXT; @@ -67,8 +60,14 @@ typedef struct LIST_ENTRY SysAudioDeviceList; HANDLE hSysAudio; PFILE_OBJECT FileObject; - LIST_ENTRY WdmAudClientList; + + ULONG SysAudioDeviceCount; + PIO_WORKITEM WorkItem; + KEVENT InitializationCompletionEvent; + ULONG WorkItemActive; + + PDEVICE_OBJECT NextDeviceObject; }WDMAUD_DEVICE_EXTENSION, *PWDMAUD_DEVICE_EXTENSION; typedef struct @@ -129,6 +128,20 @@ WdmAudControlOpenMixer( IN PWDMAUD_DEVICE_INFO DeviceInfo, IN PWDMAUD_CLIENT ClientInfo); +NTSTATUS +WdmAudControlCloseMixer( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp, + IN PWDMAUD_DEVICE_INFO DeviceInfo, + IN PWDMAUD_CLIENT ClientInfo, + IN ULONG Index); + +VOID +WdmAudCloseAllMixers( + IN PDEVICE_OBJECT DeviceObject, + IN PWDMAUD_CLIENT ClientInfo, + IN ULONG Index); + NTSTATUS WdmAudControlOpenWave( IN PDEVICE_OBJECT DeviceObject, @@ -315,3 +328,4 @@ VOID FreeItem( IN PVOID Item); +#endif /* _WDMAUD_PCH_ */