next up previous contents
Next: 3.3 Using modules Up: 3 Using MIDAS Digital Previous: 3.1 Initializing and configuring

3.2 Uninitializing MIDAS

MIDAS Digital Audio System uninitialization is essentially the reverse process of initialization. Actually only the last step is (calling MIDASclose) is absolutely necessary, but it is good practise to uninitialize everything that has been initialized. In addition, all modules and samples that have been loaded should be deallocated before uninitializing MIDAS, as failing to do so may lead to memory leaks.

Basic MIDAS uninitialization consists of three steps:

1. If sound channels have been opened with MIDASopenChannels, close them by calling MIDAScloseChannels.

2. If background sound playback is used, stop it by calling MIDASstopBackgroundPlay.

3. Finally, uninitialize the rest of MIDAS Digital Audio System by calling MIDASclose.



Petteri Kangaslampi
Sun Mar 1 22:25:31 EET 1998