Microsoft DirectX 8.0 (Visual Basic) |
Associates a segment with a DLS instrument collection. The collection will be downloaded when the DirectMusicSegment8.Download method is called.
object.ConnectToCollection(c As DirectMusicCollection8)
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_SET_UNSUPPORTED |
DMUS_E_TRACK_NOT_FOUND |
By default, the General MIDI collection in the Gm.dls file is connected to the segment. This method needs to be called only if the segment is to be played with custom instruments.