Microsoft DirectX 8.1 (Visual Basic)

DirectMusicSegment8.SetStandardMidiFile

The SetStandardMidiFile method advises DirectMusic that the segment is based on a standard MIDI file, not one authored specifically for DirectMusic. Calling this method ensures that channels do not play silently if the file contains no patch changes, and that bank selects are ignored.

object.SetStandardMidiFile()

Parts

object

Resolves to a DirectMusicSegment8 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.