- Implement looped streaming (needed for dsound bringup)
[reactos.git] / reactos / drivers / wdm / audio / backpln / portcls / undoc.cpp
index c0b1f85..56c2597 100644 (file)
@@ -8,6 +8,22 @@
 
 #include "private.hpp"
 
+
+KSPIN_INTERFACE PinInterfaces[] = 
+{
+    {
+        {STATIC_KSINTERFACESETID_Standard},
+        KSINTERFACE_STANDARD_STREAMING,
+        0
+    },
+    {
+        {STATIC_KSINTERFACESETID_Standard},
+        KSINTERFACE_STANDARD_LOOPED_STREAMING,
+        0
+    }
+};
+
+
 NTSTATUS
 NTAPI
 KsoDispatchCreateWithGenericFactory(
@@ -450,6 +466,9 @@ PcCreateSubdeviceDescriptor(
         {
             RtlMoveMemory(&Descriptor->Factory.KsPinDescriptor[Index], &SrcDescriptor->KsPinDescriptor, sizeof(KSPIN_DESCRIPTOR));
 
+            Descriptor->Factory.KsPinDescriptor[Index].Interfaces = PinInterfaces;
+            Descriptor->Factory.KsPinDescriptor[Index].InterfacesCount = sizeof(PinInterfaces) / sizeof(KSPIN_INTERFACE);
+
             DPRINT("Index %u DataRangeCount %u\n", Index, SrcDescriptor->KsPinDescriptor.DataRangesCount);
 
             Descriptor->Factory.Instances[Index].CurrentPinInstanceCount = 0;