* PROGRAMMER: Johannes Anderwald
*/
-#include "priv.h"
+#include "precomp.h"
+
+#define YDEBUG
+#include <debug.h>
MIXER_STATUS
MMixerGetPinDataFlowAndCommunication(
MidiInfo->PinId = PinId;
/* sanity check */
- ASSERT(wcslen(DeviceName) + 1 < MAXPNAMELEN);
+ ASSERT(!DeviceName || (wcslen(DeviceName) + 1 < MAXPNAMELEN));
/* copy device name */
if (bInput && DeviceName)
PKSDATARANGE DataRange;
KSPIN_COMMUNICATION Communication;
KSPIN_DATAFLOW DataFlow;
- MIXER_STATUS Status;
/* get first datarange */
DataRange = (PKSDATARANGE)(MultipleItem + 1);
{
if (DataFlow == KSPIN_DATAFLOW_IN && Communication == KSPIN_COMMUNICATION_SINK)
{
- Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
+ MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
}
else if (DataFlow == KSPIN_DATAFLOW_OUT && Communication == KSPIN_COMMUNICATION_SOURCE)
{
- Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
+ MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
}
}
}