pygame2.sdl.audio – SDL audio subsystem wrapper

Pygame SDL audio subsystem wrapper module.

Note

Do not use pygame2.sdlmixer and pygame2.sdl.audio at the same time. As they both deal with audio hardware access, this can lead to problems and weird behaviour.

Module Functions

pygame2.sdl.audio.init() → None
Initializes the audio subsystem of the SDL library.
pygame2.sdl.audio.quit() → None

Shuts down the audio subsystem of the SDL library.

After calling this function, you should not invoke any class, method or function related to the audio subsystem as they are likely to fail or might give unpredictable results.

pygame2.sdl.audio.was_init() → bool
Returns, whether the audio subsystem of the SDL library is initialized.

Table Of Contents

Previous topic

pygame2.sdl – basic SDL wrapper module

Next topic

pygame2.sdl.cdrom – SDL CD-ROM management wrapper

This Page