Microsoft DirectX 8.1 (Visual Basic) |
The CloseDown method closes down the performance. An application that created the performance object and called DirectMusicPerformance8.InitAudio on it must call CloseDown before the performance object is released.
object.CloseDown()
Parts
object
Resolves to a DirectMusicPerformance8 object.
Error Codes
If the method fails, it raises an error, and Err.Number is set.
Remarks
Failure to call CloseDown can cause memory leaks or application failures.
If the DirectSound8 object was created in the call to DirectMusicPerformance8.InitAudio but no object was returned to the application, CloseDown also releases DirectSound and all DirectSound buffers. If your application has set any variables to DirectSound buffer objects, it should ensure that those variables go out of scope or are set to Nothing before calling Closedown.
If the application created DirectSound8 explicitly, or obtained the DirectSound8 object from InitAudio, it is responsible for releasing DirectSound.
CloseDown releases any downloaded instruments that have not been unloaded.