Microsoft DirectX 8.0 (Visual Basic) |
Bands take up memory, so they should be unloaded when they are no longer in use. If you have enabled automatic downloading of bands, the bands associated with a segment are unloaded automatically when the segment stops. Otherwise, you can manually unload a band by calling the DirectMusicSegment8.Unload or DirectMusicBand8.Unload method for instruments downloaded by the corresponding Download method.
The DirectMusicPerformance8.CloseDown method also unloads any remaining downloaded instruments.