Tao.Sdl SDK Documentation

SdlMixer.Mix_CloseAudio Method 

Close sound mixer

[Visual Basic]
Public Shared Sub Mix_CloseAudio()
[C#]
public static void Mix_CloseAudio();

Return Value

Remarks

Shutdown and cleanup the mixer API.

After calling this all audio is stopped, the device is closed, and the SDL_mixer functions should not be used. You may, of course, use Mix_OpenAudio to start the functionality again.

Note: This function doesn't do anything until you have called it the same number of times that you called Mix_OpenAudio. You may use Mix_QuerySpec to find out how many times Mix_CloseAudio needs to be called before the device is actually closed.

Binds to C-function in SDL_mixer.h

void Mix_CloseAudio()
            

Example

            Mix_CloseAudio();
            // you could SDL_Quit(); here...or not.
            

See Also

SdlMixer Class | Tao.Sdl Namespace | Mix_OpenAudio | Mix_QuerySpec