DirectMusic Stream Data Range
This example uses a KSDATARANGE_MUSIC structure to describe the data range for a DirectMusic stream.
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;