Skip to content

Commit 82ec732

Browse files
committed
Advertise support for KSEVENT_PINCAPS_FORMATCHANGE
1 parent c6a7daf commit 82ec732

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

SynchronousAudioRouter/control.cpp

+16-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ DEFINE_KSPROPERTY_SET_TABLE(gPinPropertySets) {
8686
DEFINE_KSAUTOMATION_TABLE(gPinAutomation) {
8787
DEFINE_KSAUTOMATION_PROPERTIES(gPinPropertySets),
8888
DEFINE_KSAUTOMATION_METHODS_NULL,
89-
DEFINE_KSAUTOMATION_EVENTS_NULL,
89+
DEFINE_KSAUTOMATION_EVENTS_NULL
9090
};
9191

9292
const KSPIN_INTERFACE gPinInterfaces[] = {
@@ -167,10 +167,24 @@ DEFINE_KSPROPERTY_SET_TABLE(gFilterPropertySets) {
167167
nullptr)
168168
};
169169

170+
DEFINE_KSEVENT_TABLE(gFilterEvents) {
171+
DEFINE_KSEVENT_ITEM(
172+
KSEVENT_PINCAPS_FORMATCHANGE,
173+
sizeof(KSEVENTDATA), 0,
174+
nullptr, nullptr, nullptr)
175+
};
176+
177+
DEFINE_KSEVENT_SET_TABLE(gFilterEventSets) {
178+
DEFINE_KSEVENT_SET(
179+
&KSEVENTSETID_PinCapsChange,
180+
SIZEOF_ARRAY(gFilterEvents),
181+
gFilterEvents)
182+
};
183+
170184
DEFINE_KSAUTOMATION_TABLE(gFilterAutomation) {
171185
DEFINE_KSAUTOMATION_PROPERTIES(gFilterPropertySets),
172186
DEFINE_KSAUTOMATION_METHODS_NULL,
173-
DEFINE_KSAUTOMATION_EVENTS_NULL,
187+
DEFINE_KSAUTOMATION_EVENTS(gFilterEventSets),
174188
};
175189

176190
static KSFILTER_DESCRIPTOR gFilterDescriptorTemplate = {

SynchronousAudioRouter/sar.h

-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ typedef struct SarEndpointRegisters
117117
#define SAR_CONTROL_REFERENCE_STRING L"\\{0EB287D4-6C04-4926-AE19-3C066A4C3F3A}"
118118
#define SAR_TAG '1RAS'
119119

120-
#define NO_LOGGING
121-
122120
#ifdef NO_LOGGING
123121
#define SAR_LOG(...)
124122
#else

0 commit comments

Comments
 (0)