@@ -638,19 +638,17 @@ CMidi2KSMidiEndpointManager::OnDeviceAdded(
638
638
{
639
639
TraceLoggingWrite (
640
640
MidiKSAbstractionTelemetryProvider::Provider (),
641
- MIDI_TRACE_EVENT_ERROR ,
641
+ MIDI_TRACE_EVENT_INFO ,
642
642
TraceLoggingString (__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD),
643
- TraceLoggingLevel (WINEVENT_LEVEL_ERROR ),
643
+ TraceLoggingLevel (WINEVENT_LEVEL_INFO ),
644
644
TraceLoggingPointer (this , " this" ),
645
- TraceLoggingWideString (L" Pin is regular unidirectional MIDI pin. Aborting creation. " , MIDI_TRACE_EVENT_MESSAGE_FIELD),
645
+ TraceLoggingWideString (L" Pin is unidirectional" , MIDI_TRACE_EVENT_MESSAGE_FIELD),
646
646
TraceLoggingWideString (MidiPin->Name .c_str (), " pin name" )
647
647
);
648
648
649
- RETURN_IF_FAILED (E_UNEXPECTED);
650
-
651
- // // In and out have only a single pin id to create.
652
- // interfaceDevProperties.push_back({ { DEVPKEY_KsMidiPort_KsPinId, DEVPROP_STORE_SYSTEM, nullptr },
653
- // DEVPROP_TYPE_UINT32, static_cast<ULONG>(sizeof(UINT32)), &(MidiPin->PinId) });
649
+ // In and out have only a single pin id to create.
650
+ interfaceDevProperties.push_back ({ { DEVPKEY_KsMidiPort_KsPinId, DEVPROP_STORE_SYSTEM, nullptr },
651
+ DEVPROP_TYPE_UINT32, static_cast <ULONG>(sizeof (UINT32)), &(MidiPin->PinId ) });
654
652
}
655
653
656
654
// deviceDevProperties.push_back({ { DEVPKEY_Device_PresenceNotForDevice, DEVPROP_STORE_SYSTEM, nullptr },
0 commit comments