[][src]Module ggez::audio

Provides an interface to output sound to the user's speakers.

It consists of two main types: SoundData is just an array of raw sound data, and a Source is a SoundData connected to a particular sound channel able to be played.

Structs

NullAudioContext

A structure that implements AudioContext but does nothing; serves as a stub for when you don't need audio. Will panic if you try to actually play sound from it.

RodioAudioContext

A struct that contains all information for tracking sound info.

SoundData

Static sound data stored in memory. It is Arc'ed, so cheap to clone.

Source

A source of audio data connected to a particular Channel. Will stop playing when dropped.

SourceState

Internal state used by audio sources.

SpatialSource

A source of audio data located in space relative to a listener's ears. Will stop playing when dropped.

Traits

AudioContext

A trait object defining an audio context, allowing us to someday use something other than rodio if we really want.

SoundSource

The source for a sound.