DirectMusic 流数据范围
此示例使用 KSDATARANGE_MUSIC 结构来描述 DirectMusic 流的数据范围。
DataRange.FormatSize = sizeof(KSDATARANGE_MUSIC);
DataRange.Flags = 0;
DataRange.SampleSize = 0;
DataRange.Reserved = 0;
DataRange.MajorFormat = STATICGUIDOF(KSDATAFORMAT_TYPE_MUSIC);
DataRange.SubFormat = STATICGUIDOF(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC);
DataRange.Specifier = STATICGUIDOF(KSDATAFORMAT_SPECIFIER_NONE);
Technology = STATICGUIDOF(KSMUSIC_TECHNOLOGY_WAVETABLE);
Channels = 0;
Notes = 0;
ChannelMask = 0xFFFF;