module SDL::Mix
Defined in:
mix.crmix/channel.cr
mix/music.cr
mix/sample.cr
Constant Summary
-
DEFAULT_FORMAT =
LibMix::Mix_DEFAULT_FORMAT
-
MAX_VOLUME =
LibMix::MIN_MAX_VOLUME
Class Method Summary
- .close
-
.init(flags : Init)
Loads support for audio decoders.
-
.open(freq = 44100, format = DEFAULT_FORMAT, channels = 2, sample_size = 2048)
This is required to initialize SDL_Mixer.
- .query_spec(freq = 44100, format = 0, channels = 2)
- .quit
Class Method Detail
Loads support for audio decoders. #quit
should be called during
application cleanup.
This is required to initialize SDL_Mixer. It must be called before using any other function, but AFTER SDL has been initialized.