IMiniportMidi interface (portcls.h)

The IMiniportMidi interface is the primary interface for a MIDI miniport driver for a MIDI synthesizer device. The MIDI port driver communicates with the miniport driver through this interface. The adapter driver creates the MIDI miniport object and passes the object's IMiniportMidi interface pointer to the MIDI port driver's IPort::Init method (see the code example in Subdevice Creation). IMiniportMidi inherits from the IMiniport interface.

An adapter driver forms a miniport/port driver pair by binding an IMiniportMidi object to an IPortMidi object. The PortCls system driver registers this pair with the system as a MIDI filter (see MIDI and DirectMusic Filters).

The IMiniportMidi interface provides methods for initializing the miniport object, for creating a new MIDI stream, and for notifying the miniport driver of an interrupt service request.

Inheritance

The IMiniportMidi interface inherits from the IMiniport interface.

Methods

The IMiniportMidi interface has these methods.

 
IMiniportMidi::Init

The Init method initializes the MIDI miniport object.
IMiniportMidi::NewStream

The (IMiniportMidi) NewStream (portcls.h) method creates a new instance of a logical stream associated with a specified physical channel.
IMiniportMidi::Service

The Service method notifies the miniport driver of a request for service.

Requirements

Requirement Value
Target Platform Windows
Header portcls.h