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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
|
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0499 */
/* Compiler settings for audioclient.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __audioclient_h__
#define __audioclient_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IAudioClient_FWD_DEFINED__
#define __IAudioClient_FWD_DEFINED__
typedef interface IAudioClient IAudioClient;
#endif /* __IAudioClient_FWD_DEFINED__ */
#ifndef __IAudioRenderClient_FWD_DEFINED__
#define __IAudioRenderClient_FWD_DEFINED__
typedef interface IAudioRenderClient IAudioRenderClient;
#endif /* __IAudioRenderClient_FWD_DEFINED__ */
#ifndef __IAudioCaptureClient_FWD_DEFINED__
#define __IAudioCaptureClient_FWD_DEFINED__
typedef interface IAudioCaptureClient IAudioCaptureClient;
#endif /* __IAudioCaptureClient_FWD_DEFINED__ */
#ifndef __IAudioClock_FWD_DEFINED__
#define __IAudioClock_FWD_DEFINED__
typedef interface IAudioClock IAudioClock;
#endif /* __IAudioClock_FWD_DEFINED__ */
#ifndef __ISimpleAudioVolume_FWD_DEFINED__
#define __ISimpleAudioVolume_FWD_DEFINED__
typedef interface ISimpleAudioVolume ISimpleAudioVolume;
#endif /* __ISimpleAudioVolume_FWD_DEFINED__ */
#ifndef __IAudioStreamVolume_FWD_DEFINED__
#define __IAudioStreamVolume_FWD_DEFINED__
typedef interface IAudioStreamVolume IAudioStreamVolume;
#endif /* __IAudioStreamVolume_FWD_DEFINED__ */
#ifndef __IChannelAudioVolume_FWD_DEFINED__
#define __IChannelAudioVolume_FWD_DEFINED__
typedef interface IChannelAudioVolume IChannelAudioVolume;
#endif /* __IChannelAudioVolume_FWD_DEFINED__ */
/* header files for imported files */
#include "wtypes.h"
#include "unknwn.h"
#include "AudioSessionTypes.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_audioclient_0000_0000 */
/* [local] */
#if 0
typedef /* [hidden][restricted] */ struct WAVEFORMATEX
{
WORD wFormatTag;
WORD nChannels;
DWORD nSamplesPerSec;
DWORD nAvgBytesPerSec;
WORD nBlockAlign;
WORD wBitsPerSample;
WORD cbSize;
} WAVEFORMATEX;
#else
#include <mmreg.h>
#endif
#if 0
typedef /* [hidden][restricted] */ LONGLONG REFERENCE_TIME;
#else
#define _IKsControl_
#include <ks.h>
#include <ksmedia.h>
#endif
enum _AUDCLNT_BUFFERFLAGS
{ AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY = 0x1,
AUDCLNT_BUFFERFLAGS_SILENT = 0x2,
AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x4
} ;
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0000_v0_0_s_ifspec;
#ifndef __IAudioClient_INTERFACE_DEFINED__
#define __IAudioClient_INTERFACE_DEFINED__
/* interface IAudioClient */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_IAudioClient;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("1CB9AD4C-DBFA-4c32-B178-C2F568A703B2")
IAudioClient : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Initialize(
/* [in] */
__in AUDCLNT_SHAREMODE ShareMode,
/* [in] */
__in DWORD StreamFlags,
/* [in] */
__in REFERENCE_TIME hnsBufferDuration,
/* [in] */
__in REFERENCE_TIME hnsPeriodicity,
/* [in] */
__in const WAVEFORMATEX *pFormat,
/* [in] */
__in_opt LPCGUID AudioSessionGuid) = 0;
virtual HRESULT STDMETHODCALLTYPE GetBufferSize(
/* [out] */
__out UINT32 *pNumBufferFrames) = 0;
virtual HRESULT STDMETHODCALLTYPE GetStreamLatency(
/* [out] */
__out REFERENCE_TIME *phnsLatency) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentPadding(
/* [out] */
__out UINT32 *pNumPaddingFrames) = 0;
virtual HRESULT STDMETHODCALLTYPE IsFormatSupported(
/* [in] */
__in AUDCLNT_SHAREMODE ShareMode,
/* [in] */
__in const WAVEFORMATEX *pFormat,
/* [unique][out] */
__out_opt WAVEFORMATEX **ppClosestMatch) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMixFormat(
/* [out] */
__out WAVEFORMATEX **ppDeviceFormat) = 0;
virtual HRESULT STDMETHODCALLTYPE GetDevicePeriod(
/* [out] */
__out_opt REFERENCE_TIME *phnsDefaultDevicePeriod,
/* [out] */
__out_opt REFERENCE_TIME *phnsMinimumDevicePeriod) = 0;
virtual HRESULT STDMETHODCALLTYPE Start( void) = 0;
virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0;
virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEventHandle(
/* [in] */ HANDLE eventHandle) = 0;
virtual HRESULT STDMETHODCALLTYPE GetService(
/* [in] */
__in REFIID riid,
/* [iid_is][out] */
__out void **ppv) = 0;
};
#else /* C style interface */
typedef struct IAudioClientVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IAudioClient * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IAudioClient * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IAudioClient * This);
HRESULT ( STDMETHODCALLTYPE *Initialize )(
IAudioClient * This,
/* [in] */
__in AUDCLNT_SHAREMODE ShareMode,
/* [in] */
__in DWORD StreamFlags,
/* [in] */
__in REFERENCE_TIME hnsBufferDuration,
/* [in] */
__in REFERENCE_TIME hnsPeriodicity,
/* [in] */
__in const WAVEFORMATEX *pFormat,
/* [in] */
__in_opt LPCGUID AudioSessionGuid);
HRESULT ( STDMETHODCALLTYPE *GetBufferSize )(
IAudioClient * This,
/* [out] */
__out UINT32 *pNumBufferFrames);
HRESULT ( STDMETHODCALLTYPE *GetStreamLatency )(
IAudioClient * This,
/* [out] */
__out REFERENCE_TIME *phnsLatency);
HRESULT ( STDMETHODCALLTYPE *GetCurrentPadding )(
IAudioClient * This,
/* [out] */
__out UINT32 *pNumPaddingFrames);
HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )(
IAudioClient * This,
/* [in] */
__in AUDCLNT_SHAREMODE ShareMode,
/* [in] */
__in const WAVEFORMATEX *pFormat,
/* [unique][out] */
__out_opt WAVEFORMATEX **ppClosestMatch);
HRESULT ( STDMETHODCALLTYPE *GetMixFormat )(
IAudioClient * This,
/* [out] */
__out WAVEFORMATEX **ppDeviceFormat);
HRESULT ( STDMETHODCALLTYPE *GetDevicePeriod )(
IAudioClient * This,
/* [out] */
__out_opt REFERENCE_TIME *phnsDefaultDevicePeriod,
/* [out] */
__out_opt REFERENCE_TIME *phnsMinimumDevicePeriod);
HRESULT ( STDMETHODCALLTYPE *Start )(
IAudioClient * This);
HRESULT ( STDMETHODCALLTYPE *Stop )(
IAudioClient * This);
HRESULT ( STDMETHODCALLTYPE *Reset )(
IAudioClient * This);
HRESULT ( STDMETHODCALLTYPE *SetEventHandle )(
IAudioClient * This,
/* [in] */ HANDLE eventHandle);
HRESULT ( STDMETHODCALLTYPE *GetService )(
IAudioClient * This,
/* [in] */
__in REFIID riid,
/* [iid_is][out] */
__out void **ppv);
END_INTERFACE
} IAudioClientVtbl;
interface IAudioClient
{
CONST_VTBL struct IAudioClientVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IAudioClient_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IAudioClient_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IAudioClient_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IAudioClient_Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) \
( (This)->lpVtbl -> Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) )
#define IAudioClient_GetBufferSize(This,pNumBufferFrames) \
( (This)->lpVtbl -> GetBufferSize(This,pNumBufferFrames) )
#define IAudioClient_GetStreamLatency(This,phnsLatency) \
( (This)->lpVtbl -> GetStreamLatency(This,phnsLatency) )
#define IAudioClient_GetCurrentPadding(This,pNumPaddingFrames) \
( (This)->lpVtbl -> GetCurrentPadding(This,pNumPaddingFrames) )
#define IAudioClient_IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) \
( (This)->lpVtbl -> IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) )
#define IAudioClient_GetMixFormat(This,ppDeviceFormat) \
( (This)->lpVtbl -> GetMixFormat(This,ppDeviceFormat) )
#define IAudioClient_GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) \
( (This)->lpVtbl -> GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) )
#define IAudioClient_Start(This) \
( (This)->lpVtbl -> Start(This) )
#define IAudioClient_Stop(This) \
( (This)->lpVtbl -> Stop(This) )
#define IAudioClient_Reset(This) \
( (This)->lpVtbl -> Reset(This) )
#define IAudioClient_SetEventHandle(This,eventHandle) \
( (This)->lpVtbl -> SetEventHandle(This,eventHandle) )
#define IAudioClient_GetService(This,riid,ppv) \
( (This)->lpVtbl -> GetService(This,riid,ppv) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IAudioClient_INTERFACE_DEFINED__ */
#ifndef __IAudioRenderClient_INTERFACE_DEFINED__
#define __IAudioRenderClient_INTERFACE_DEFINED__
/* interface IAudioRenderClient */
/* [local][unique][helpstring][uuid][object] */
EXTERN_C const IID IID_IAudioRenderClient;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("F294ACFC-3146-4483-A7BF-ADDCA7C260E2")
IAudioRenderClient : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetBuffer(
/* [in] */
__in UINT32 NumFramesRequested,
/* [out] */
__out BYTE **ppData) = 0;
virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer(
/* [in] */
__in UINT32 NumFramesWritten,
/* [in] */
__in DWORD dwFlags) = 0;
};
#else /* C style interface */
typedef struct IAudioRenderClientVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IAudioRenderClient * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IAudioRenderClient * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IAudioRenderClient * This);
HRESULT ( STDMETHODCALLTYPE *GetBuffer )(
IAudioRenderClient * This,
/* [in] */
__in UINT32 NumFramesRequested,
/* [out] */
__out BYTE **ppData);
HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )(
IAudioRenderClient * This,
/* [in] */
__in UINT32 NumFramesWritten,
/* [in] */
__in DWORD dwFlags);
END_INTERFACE
} IAudioRenderClientVtbl;
interface IAudioRenderClient
{
CONST_VTBL struct IAudioRenderClientVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IAudioRenderClient_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IAudioRenderClient_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IAudioRenderClient_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IAudioRenderClient_GetBuffer(This,NumFramesRequested,ppData) \
( (This)->lpVtbl -> GetBuffer(This,NumFramesRequested,ppData) )
#define IAudioRenderClient_ReleaseBuffer(This,NumFramesWritten,dwFlags) \
( (This)->lpVtbl -> ReleaseBuffer(This,NumFramesWritten,dwFlags) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IAudioRenderClient_INTERFACE_DEFINED__ */
#ifndef __IAudioCaptureClient_INTERFACE_DEFINED__
#define __IAudioCaptureClient_INTERFACE_DEFINED__
/* interface IAudioCaptureClient */
/* [local][unique][helpstring][uuid][object] */
EXTERN_C const IID IID_IAudioCaptureClient;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("C8ADBD64-E71E-48a0-A4DE-185C395CD317")
IAudioCaptureClient : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetBuffer(
/* [out] */
__out BYTE **ppData,
/* [out] */
__out UINT32 *pNumFramesToRead,
/* [out] */
__out DWORD *pdwFlags,
/* [unique][out] */
__out_opt UINT64 *pu64DevicePosition,
/* [unique][out] */
__out_opt UINT64 *pu64QPCPosition) = 0;
virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer(
/* [in] */
__in UINT32 NumFramesRead) = 0;
virtual HRESULT STDMETHODCALLTYPE GetNextPacketSize(
/* [out] */
__out UINT32 *pNumFramesInNextPacket) = 0;
};
#else /* C style interface */
typedef struct IAudioCaptureClientVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IAudioCaptureClient * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IAudioCaptureClient * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IAudioCaptureClient * This);
HRESULT ( STDMETHODCALLTYPE *GetBuffer )(
IAudioCaptureClient * This,
/* [out] */
__out BYTE **ppData,
/* [out] */
__out UINT32 *pNumFramesToRead,
/* [out] */
__out DWORD *pdwFlags,
/* [unique][out] */
__out_opt UINT64 *pu64DevicePosition,
/* [unique][out] */
__out_opt UINT64 *pu64QPCPosition);
HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )(
IAudioCaptureClient * This,
/* [in] */
__in UINT32 NumFramesRead);
HRESULT ( STDMETHODCALLTYPE *GetNextPacketSize )(
IAudioCaptureClient * This,
/* [out] */
__out UINT32 *pNumFramesInNextPacket);
END_INTERFACE
} IAudioCaptureClientVtbl;
interface IAudioCaptureClient
{
CONST_VTBL struct IAudioCaptureClientVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IAudioCaptureClient_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IAudioCaptureClient_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IAudioCaptureClient_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IAudioCaptureClient_GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) \
( (This)->lpVtbl -> GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) )
#define IAudioCaptureClient_ReleaseBuffer(This,NumFramesRead) \
( (This)->lpVtbl -> ReleaseBuffer(This,NumFramesRead) )
#define IAudioCaptureClient_GetNextPacketSize(This,pNumFramesInNextPacket) \
( (This)->lpVtbl -> GetNextPacketSize(This,pNumFramesInNextPacket) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IAudioCaptureClient_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_audioclient_0000_0003 */
/* [local] */
#define AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ 0x00000001
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0003_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0003_v0_0_s_ifspec;
#ifndef __IAudioClock_INTERFACE_DEFINED__
#define __IAudioClock_INTERFACE_DEFINED__
/* interface IAudioClock */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_IAudioClock;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("CD63314F-3FBA-4a1b-812C-EF96358728E7")
IAudioClock : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetFrequency(
/* [out] */
__out UINT64 *pu64Frequency) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPosition(
/* [out] */
__out UINT64 *pu64Position,
/* [unique][out] */
__out_opt UINT64 *pu64QPCPosition) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCharacteristics(
/* [out] */
__out DWORD *pdwCharacteristics) = 0;
};
#else /* C style interface */
typedef struct IAudioClockVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IAudioClock * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IAudioClock * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IAudioClock * This);
HRESULT ( STDMETHODCALLTYPE *GetFrequency )(
IAudioClock * This,
/* [out] */
__out UINT64 *pu64Frequency);
HRESULT ( STDMETHODCALLTYPE *GetPosition )(
IAudioClock * This,
/* [out] */
__out UINT64 *pu64Position,
/* [unique][out] */
__out_opt UINT64 *pu64QPCPosition);
HRESULT ( STDMETHODCALLTYPE *GetCharacteristics )(
IAudioClock * This,
/* [out] */
__out DWORD *pdwCharacteristics);
END_INTERFACE
} IAudioClockVtbl;
interface IAudioClock
{
CONST_VTBL struct IAudioClockVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IAudioClock_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IAudioClock_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IAudioClock_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IAudioClock_GetFrequency(This,pu64Frequency) \
( (This)->lpVtbl -> GetFrequency(This,pu64Frequency) )
#define IAudioClock_GetPosition(This,pu64Position,pu64QPCPosition) \
( (This)->lpVtbl -> GetPosition(This,pu64Position,pu64QPCPosition) )
#define IAudioClock_GetCharacteristics(This,pdwCharacteristics) \
( (This)->lpVtbl -> GetCharacteristics(This,pdwCharacteristics) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IAudioClock_INTERFACE_DEFINED__ */
#ifndef __ISimpleAudioVolume_INTERFACE_DEFINED__
#define __ISimpleAudioVolume_INTERFACE_DEFINED__
/* interface ISimpleAudioVolume */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_ISimpleAudioVolume;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("87CE5498-68D6-44E5-9215-6DA47EF883D8")
ISimpleAudioVolume : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE SetMasterVolume(
/* [in] */
__in float fLevel,
/* [unique][in] */ LPCGUID EventContext) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMasterVolume(
/* [out] */
__out float *pfLevel) = 0;
virtual HRESULT STDMETHODCALLTYPE SetMute(
/* [in] */
__in const BOOL bMute,
/* [unique][in] */ LPCGUID EventContext) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMute(
/* [out] */
__out BOOL *pbMute) = 0;
};
#else /* C style interface */
typedef struct ISimpleAudioVolumeVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ISimpleAudioVolume * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
ISimpleAudioVolume * This);
ULONG ( STDMETHODCALLTYPE *Release )(
ISimpleAudioVolume * This);
HRESULT ( STDMETHODCALLTYPE *SetMasterVolume )(
ISimpleAudioVolume * This,
/* [in] */
__in float fLevel,
/* [unique][in] */ LPCGUID EventContext);
HRESULT ( STDMETHODCALLTYPE *GetMasterVolume )(
ISimpleAudioVolume * This,
/* [out] */
__out float *pfLevel);
HRESULT ( STDMETHODCALLTYPE *SetMute )(
ISimpleAudioVolume * This,
/* [in] */
__in const BOOL bMute,
/* [unique][in] */ LPCGUID EventContext);
HRESULT ( STDMETHODCALLTYPE *GetMute )(
ISimpleAudioVolume * This,
/* [out] */
__out BOOL *pbMute);
END_INTERFACE
} ISimpleAudioVolumeVtbl;
interface ISimpleAudioVolume
{
CONST_VTBL struct ISimpleAudioVolumeVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ISimpleAudioVolume_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ISimpleAudioVolume_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ISimpleAudioVolume_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ISimpleAudioVolume_SetMasterVolume(This,fLevel,EventContext) \
( (This)->lpVtbl -> SetMasterVolume(This,fLevel,EventContext) )
#define ISimpleAudioVolume_GetMasterVolume(This,pfLevel) \
( (This)->lpVtbl -> GetMasterVolume(This,pfLevel) )
#define ISimpleAudioVolume_SetMute(This,bMute,EventContext) \
( (This)->lpVtbl -> SetMute(This,bMute,EventContext) )
#define ISimpleAudioVolume_GetMute(This,pbMute) \
( (This)->lpVtbl -> GetMute(This,pbMute) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __ISimpleAudioVolume_INTERFACE_DEFINED__ */
#ifndef __IAudioStreamVolume_INTERFACE_DEFINED__
#define __IAudioStreamVolume_INTERFACE_DEFINED__
/* interface IAudioStreamVolume */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_IAudioStreamVolume;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("93014887-242D-4068-8A15-CF5E93B90FE3")
IAudioStreamVolume : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetChannelCount(
/* [out] */
__out UINT32 *pdwCount) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolume(
/* [in] */
__in UINT32 dwIndex,
/* [in] */
__in const float fLevel) = 0;
virtual HRESULT STDMETHODCALLTYPE GetChannelVolume(
/* [in] */
__in UINT32 dwIndex,
/* [out] */
__out float *pfLevel) = 0;
virtual HRESULT STDMETHODCALLTYPE SetAllVolumes(
/* [in] */
__in UINT32 dwCount,
/* [size_is][in] */
__in_ecount(dwCount) const float *pfVolumes) = 0;
virtual HRESULT STDMETHODCALLTYPE GetAllVolumes(
/* [in] */
__in UINT32 dwCount,
/* [size_is][out] */
__out_ecount(dwCount) float *pfVolumes) = 0;
};
#else /* C style interface */
typedef struct IAudioStreamVolumeVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IAudioStreamVolume * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IAudioStreamVolume * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IAudioStreamVolume * This);
HRESULT ( STDMETHODCALLTYPE *GetChannelCount )(
IAudioStreamVolume * This,
/* [out] */
__out UINT32 *pdwCount);
HRESULT ( STDMETHODCALLTYPE *SetChannelVolume )(
IAudioStreamVolume * This,
/* [in] */
__in UINT32 dwIndex,
/* [in] */
__in const float fLevel);
HRESULT ( STDMETHODCALLTYPE *GetChannelVolume )(
IAudioStreamVolume * This,
/* [in] */
__in UINT32 dwIndex,
/* [out] */
__out float *pfLevel);
HRESULT ( STDMETHODCALLTYPE *SetAllVolumes )(
IAudioStreamVolume * This,
/* [in] */
__in UINT32 dwCount,
/* [size_is][in] */
__in_ecount(dwCount) const float *pfVolumes);
HRESULT ( STDMETHODCALLTYPE *GetAllVolumes )(
IAudioStreamVolume * This,
/* [in] */
__in UINT32 dwCount,
/* [size_is][out] */
__out_ecount(dwCount) float *pfVolumes);
END_INTERFACE
} IAudioStreamVolumeVtbl;
interface IAudioStreamVolume
{
CONST_VTBL struct IAudioStreamVolumeVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IAudioStreamVolume_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IAudioStreamVolume_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IAudioStreamVolume_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IAudioStreamVolume_GetChannelCount(This,pdwCount) \
( (This)->lpVtbl -> GetChannelCount(This,pdwCount) )
#define IAudioStreamVolume_SetChannelVolume(This,dwIndex,fLevel) \
( (This)->lpVtbl -> SetChannelVolume(This,dwIndex,fLevel) )
#define IAudioStreamVolume_GetChannelVolume(This,dwIndex,pfLevel) \
( (This)->lpVtbl -> GetChannelVolume(This,dwIndex,pfLevel) )
#define IAudioStreamVolume_SetAllVolumes(This,dwCount,pfVolumes) \
( (This)->lpVtbl -> SetAllVolumes(This,dwCount,pfVolumes) )
#define IAudioStreamVolume_GetAllVolumes(This,dwCount,pfVolumes) \
( (This)->lpVtbl -> GetAllVolumes(This,dwCount,pfVolumes) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IAudioStreamVolume_INTERFACE_DEFINED__ */
#ifndef __IChannelAudioVolume_INTERFACE_DEFINED__
#define __IChannelAudioVolume_INTERFACE_DEFINED__
/* interface IChannelAudioVolume */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_IChannelAudioVolume;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("1C158861-B533-4B30-B1CF-E853E51C59B8")
IChannelAudioVolume : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetChannelCount(
/* [out] */
__out UINT32 *pdwCount) = 0;
virtual HRESULT STDMETHODCALLTYPE SetChannelVolume(
/* [in] */
__in UINT32 dwIndex,
/* [in] */
__in const float fLevel,
/* [unique][in] */ LPCGUID EventContext) = 0;
virtual HRESULT STDMETHODCALLTYPE GetChannelVolume(
/* [in] */
__in UINT32 dwIndex,
/* [out] */
__out float *pfLevel) = 0;
virtual HRESULT STDMETHODCALLTYPE SetAllVolumes(
/* [in] */
__in UINT32 dwCount,
/* [size_is][in] */
__in_ecount(dwCount) const float *pfVolumes,
/* [unique][in] */ LPCGUID EventContext) = 0;
virtual HRESULT STDMETHODCALLTYPE GetAllVolumes(
/* [in] */
__in UINT32 dwCount,
/* [size_is][out] */
__out_ecount(dwCount) float *pfVolumes) = 0;
};
#else /* C style interface */
typedef struct IChannelAudioVolumeVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IChannelAudioVolume * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IChannelAudioVolume * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IChannelAudioVolume * This);
HRESULT ( STDMETHODCALLTYPE *GetChannelCount )(
IChannelAudioVolume * This,
/* [out] */
__out UINT32 *pdwCount);
HRESULT ( STDMETHODCALLTYPE *SetChannelVolume )(
IChannelAudioVolume * This,
/* [in] */
__in UINT32 dwIndex,
/* [in] */
__in const float fLevel,
/* [unique][in] */ LPCGUID EventContext);
HRESULT ( STDMETHODCALLTYPE *GetChannelVolume )(
IChannelAudioVolume * This,
/* [in] */
__in UINT32 dwIndex,
/* [out] */
__out float *pfLevel);
HRESULT ( STDMETHODCALLTYPE *SetAllVolumes )(
IChannelAudioVolume * This,
/* [in] */
__in UINT32 dwCount,
/* [size_is][in] */
__in_ecount(dwCount) const float *pfVolumes,
/* [unique][in] */ LPCGUID EventContext);
HRESULT ( STDMETHODCALLTYPE *GetAllVolumes )(
IChannelAudioVolume * This,
/* [in] */
__in UINT32 dwCount,
/* [size_is][out] */
__out_ecount(dwCount) float *pfVolumes);
END_INTERFACE
} IChannelAudioVolumeVtbl;
interface IChannelAudioVolume
{
CONST_VTBL struct IChannelAudioVolumeVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IChannelAudioVolume_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IChannelAudioVolume_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IChannelAudioVolume_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IChannelAudioVolume_GetChannelCount(This,pdwCount) \
( (This)->lpVtbl -> GetChannelCount(This,pdwCount) )
#define IChannelAudioVolume_SetChannelVolume(This,dwIndex,fLevel,EventContext) \
( (This)->lpVtbl -> SetChannelVolume(This,dwIndex,fLevel,EventContext) )
#define IChannelAudioVolume_GetChannelVolume(This,dwIndex,pfLevel) \
( (This)->lpVtbl -> GetChannelVolume(This,dwIndex,pfLevel) )
#define IChannelAudioVolume_SetAllVolumes(This,dwCount,pfVolumes,EventContext) \
( (This)->lpVtbl -> SetAllVolumes(This,dwCount,pfVolumes,EventContext) )
#define IChannelAudioVolume_GetAllVolumes(This,dwCount,pfVolumes) \
( (This)->lpVtbl -> GetAllVolumes(This,dwCount,pfVolumes) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IChannelAudioVolume_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_audioclient_0000_0007 */
/* [local] */
#define FACILITY_AUDCLNT 0x889
#define AUDCLNT_ERR(n) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_AUDCLNT, n)
#define AUDCLNT_SUCCESS(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_AUDCLNT, n)
#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(0x001)
#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(0x002)
#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(0x003)
#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(0x004)
#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(0x005)
#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(0x006)
#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(0x007)
#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(0x008)
#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(0x009)
#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x00a)
#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x00b)
#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x00c)
#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x00e)
#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x00f)
#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x010)
#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x011)
#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x012)
#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x013)
#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x014)
#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x015)
#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x016)
#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x017)
#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x001)
#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x002)
#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x003)
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0007_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0007_v0_0_s_ifspec;
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif
|