// ksmedia.h
typedef struct {
KSDATARANGE DataRange;
GUID Technology;
ULONG Channels;
ULONG Notes;
ULONG ChannelMask;
} KSDATARANGE_MUSIC, *PKSDATARANGE_MUSIC;
View the official Windows Driver Kit DDI referenceNo description available.
The KSDATARANGE_MUSIC structure specifies a range of DirectMusic MIDI formats.
DataRangeSpecifies the MajorFormat and SubFormat GUIDs as well as the Specifier GUID for the DirectMusic data. This member is an initialized KSDATARANGE structure.
TechnologySpecifies the type of MIDI output device. This member can be one of the following GUIDs:
The device is a MIDI hardware port.
The device is a synthesizer.
The device is a square-wave synthesizer.
The device is an FM synthesizer.
The device is the Microsoft MIDI mapper.
The device is a hardware wavetable synthesizer.
The device is a software synthesizer.
ChannelsSpecifies the maximum number of simultaneous channels that can be played by an internal synthesizer device. If the device is a port, this member is not meaningful and is set to zero.
NotesSpecifies the maximum number of simultaneous notes that can be played by an internal synthesizer device. If the device is a port, this member is not meaningful and is set to zero.
ChannelMaskSpecifies which channels an internal synthesizer device responds to, where the least significant bit refers to channel 0 and the most significant bit to channel 15. Port devices that transmit on all channels set this member to 0xFFFF.
For examples of data ranges that use the KSDATARANGE_MUSIC structure, see MIDI Stream Data Range and DirectMusic Stream Data Range.
For information about data ranges and intersection handling, see Data-Intersection Handlers.