Crate music

Source
Expand description

A high level library for playing music

Enums§

Repeat
Tells how many times to repeat.

Constants§

MAX_VOLUME
Maximum value for playback volume parameter.
MIN_VOLUME
Minimum value for playback volume parameter.

Functions§

bind_music_file
Binds a music file to value.
bind_sound_file
Binds a sound file to value.
play_music
Plays a music track.
play_sound
Plays a sound effect track.
set_volume
Sets the volume of the music mixer.
start
Creates SDL context and starts the audio context
start_context
Initializes audio and sets up current objects