Platform SDK: DirectX

DirectMusicSegment.SetStandardMidiFile

The DirectMusicSegment.SetStandardMidiFile method informs DirectMusic that the segment is based on a standard MIDI file, not one authored specifically for DirectMusic. Calling this method ensures that certain events are handled properly when the segment is played.

object.SetStandardMidiFile()

Parameters

object
Object expression that resolves to a DirectMusicSegment object.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

The method should be called before instruments are downloaded.