Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This example uses a KSDATAFORMAT structure to describe the data format of a MIDI stream.
DataFormat.FormatSize = sizeof(KSDATAFORMAT);
DataFormat.Flags = 0;
DataFormat.SampleSize = 0;
DataFormat.Reserved = 0;
DataFormat.MajorFormat = STATICGUIDOF(KSDATAFORMAT_TYPE_MUSIC);
DataFormat.SubFormat = STATICGUIDOF(KSDATAFORMAT_SUBTYPE_MIDI);
DataFormat.Specifier = STATICGUIDOF(KSDATAFORMAT_SPECIFIER_NONE);