love.sound
This module is responsible for decoding sound files. It can’t play the sounds, see love.audio for that. </b>
Functions
Name | Description | Notes |
---|---|---|
newDecoder | Attempts to find a decoder for the encoded sound data in the specified file | |
newSoundData | Creates a new SoundData |
Types
Decoder
An object which can gradually decode a sound file. </b>
See also:
Name | Description | Notes |
---|---|---|
clone | Create new copy of existing Decoder | |
getChannelCount | Returns the number of channels in the stream | |
getBitDepth | Returns the number of bits per sample | |
getSampleRate | Returns the sample rate of the Decoder | |
getDuration | Gets the duration of the sound file | |
decode | Decodes a chunk of audio data to a SoundData | |
seek | Sets the currently playing position of the Decoder |
SoundData
Contains raw audio samples. You can not play SoundData back directly. You must wrap a Source object around it. </b>
See also:
Name | Description | Notes |
---|---|---|
clone | Creates a new copy of the existing SoundData | |
getBitDepth | Returns the number of bits per sample | |
getChannelCount | Returns the number of channels in the SoundData | |
getDuration | Gets the duration of the sound data | |
getSampleCount | Returns the sample count of the SoundData | |
getSampleRate | Returns the sample rate of the SoundData | |
setSample | Sets the sample at the specified position | |
getSample | Gets the value of the samplepoint at the specified position |