module SDL::Mix

Defined in:

mix.cr
mix/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

Class Method Detail

def self.close #

[View source]
def self.init(flags : Init) #

Loads support for audio decoders. #quit should be called during application cleanup.


[View source]
def self.open(freq = 44100, format = DEFAULT_FORMAT, channels = 2, sample_size = 2048) #

This is required to initialize SDL_Mixer. It must be called before using any other function, but AFTER SDL has been initialized.


[View source]
def self.query_spec(freq = 44100, format = 0, channels = 2) #

[View source]
def self.quit #

[View source]