Platform SDK: DirectX

DirectMusicSegment.SetAutoDownloadEnable

The DirectMusicSegment.SetAutoDownloadEnable method enables or disables automatic downloading and unloading of instruments in the collection associated with the segment.

object.SetAutoDownloadEnable(b As Boolean)

Parameters

object
Object expression that resolves to a DirectMusicSegment object.
b
True to enable autodownloading, or False to disable it.

Remarks

Automatic downloading is disabled by default. When it is enabled, instruments are automatically downloaded when the segment is played, and unloaded when it is stopped.

Error Codes

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

See Also

DirectMusicSegment.Download