ReactOS  0.4.15-dev-4916-gd519b11
port_dmus.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for port_dmus.cpp:

Go to the source code of this file.

Classes

class  CPortDMus
 

Macros

#define NDEBUG
 

Functions

 DEFINE_KSPROPERTY_TOPOLOGYSET (PortFilterDMusTopologySet, TopologyPropertyHandler)
 
 DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT (PortFilterDMusPinSet, PinPropertyHandler, PinPropertyHandler, PinPropertyHandler)
 
NTSTATUS NewPortDMus (OUT PPORT *OutPort)
 
VOID GetDMusMiniport (IN IPortDMus *iface, IN PMINIPORTDMUS *Miniport, IN PMINIPORTMIDI *MidiMiniport)
 

Variables

static GUID InterfaceGuids [3]
 
KSPROPERTY_SET PortDMusPropertySet []
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file port_dmus.cpp.

Function Documentation

◆ DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT()

DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT ( PortFilterDMusPinSet  ,
PinPropertyHandler  ,
PinPropertyHandler  ,
PinPropertyHandler   
)

◆ DEFINE_KSPROPERTY_TOPOLOGYSET()

DEFINE_KSPROPERTY_TOPOLOGYSET ( PortFilterDMusTopologySet  ,
TopologyPropertyHandler   
)

◆ GetDMusMiniport()

VOID GetDMusMiniport ( IN IPortDMus *  iface,
IN PMINIPORTDMUS Miniport,
IN PMINIPORTMIDI MidiMiniport 
)

Definition at line 514 of file port_dmus.cpp.

518 {
519  CPortDMus * This = (CPortDMus*)iface;
520 
521  *Miniport = This->m_pMiniport;
522  *MidiMiniport = This->m_pMiniportMidi;
523 }

◆ NewPortDMus()

NTSTATUS NewPortDMus ( OUT PPORT OutPort)

Definition at line 491 of file port_dmus.cpp.

493 {
496  if (!Port)
498 
499  Status = Port->QueryInterface(IID_IPort, (PVOID*)OutPort);
500 
501  if (!NT_SUCCESS(Status))
502  {
503  delete Port;
504  }
505 
506  DPRINT("NewPortDMus %p Status %u\n", Port, Status);
507  return Status;
508 
509 }
CPPORT Port[4]
Definition: headless.c:35
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_PORTCLASS
Definition: private.hpp:24
LONG NTSTATUS
Definition: precomp.h:26
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define NULL
Definition: types.h:112
#define DPRINT
Definition: sndvol32.h:71

Referenced by PcNewPort().

Variable Documentation

◆ InterfaceGuids

GUID InterfaceGuids[3]
static
Initial value:
=
{
{
0x6994AD04, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
},
{
0x65E8773E, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
},
{
0x65E8773D, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
}
}

Definition at line 45 of file port_dmus.cpp.

Referenced by PcCreateSubdeviceDescriptor().

◆ PortDMusPropertySet

KSPROPERTY_SET PortDMusPropertySet[]
Initial value:
=
{
{
sizeof(PortFilterDMusTopologySet) / sizeof(KSPROPERTY_ITEM),
(const KSPROPERTY_ITEM*)&PortFilterDMusTopologySet,
0,
},
{
sizeof(PortFilterDMusPinSet) / sizeof(KSPROPERTY_ITEM),
(const KSPROPERTY_ITEM*)&PortFilterDMusPinSet,
0,
}
}
#define KSPROPSETID_Topology
Definition: ks.h:842
#define KSPROPSETID_Pin
Definition: ks.h:617
#define NULL
Definition: types.h:112

Definition at line 64 of file port_dmus.cpp.