|Microsoft DirectX 9.0|
The GetChannelPriority method retrieves the priority of a MIDI channel. For an overview, see Channels.
HRESULT GetChannelPriority( DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority );
Group that the channel is in.
Index of the channel on the group.
Address of a variable that receives the priority ranking. See Remarks.
The return value is S_OK.
The following values, defined in Dmusicc.h, each represent a range of priorities. They are listed here in descending order of priority.
The following values express the default ranking of the channels within a range, according to the
The priority of a channel is represented by a range plus an offset. For example, DAUD_HIGH_VOICE_PRIORITY combined with DAUD_CHAN10_VOICE_PRIORITY_OFFSET represents the highest priority within the high range. Combined range and offset values for the standard range are defined for convenience in Dmusicc.h as DAUD_CHAN1_DEF_VOICE_PRIORITY, .DAUD_CHAN2_DEF_VOICE_PRIORITY, and so on.
Channels that have the same priority value have equal priority, regardless of which channel group they belong to.
Header: Declared in dmusicc.h.