Module ggez::audio
[−]
[src]
Provides an interface to output sound to the user's speakers.
This departs from the LÖVE API a bit because SDL2_mixer
is opinionated
about the difference between samples and music files, and also makes channel
management and such more explicit.
This seems a bit awkward but we'll roll with it for now.
Structs
Music |
A source of music data.
Music is played on a separate dedicated channel from sounds,
and also has a separate corpus of decoders than sounds do;
see the |
Sound |
A source of audio data. |
Traits
AudioOps |
A trait for general operations on sound objects. |
Functions
pause_music |
Pause currently playing music |
play_music |
Start playing the given music (looping forever) |
play_music_times |
Play the given music n times. -1 loops forever. |
resume_music |
Resume currently playing music, if any |
rewind_music |
Rewind the currently playing music to the beginning. |
stop_music |
Stop currently playing music |
Type Definitions
Channel |
An object representing a channel that may be playing a particular Sound. |