love.sound

This module is responsible for decoding sound files. It can't play the sounds, see love.audio for that.

Types

Decoder An object which can gradually decode a sound file.
SoundData Contains raw audio samples.

Functions

love.sound.newDecoder Attempts to find a decoder for the encoded sound data in the specified file.
love.sound.newSoundData Creates a new SoundData.


See Also

love.sound.newSoundData
  • References/Game Development/LÖVE/love.sound

love.sound.newSoundData Creates new SoundData from a filepath,

2025-01-10 15:47:30
SoundData:getBitDepth
  • References/Game Development/LÖVE/love.sound/SoundData

SoundData:getBitDepth Available since LÖVE 0.9.0 It has been renamed from

2025-01-10 15:47:30
SoundData:getBits
  • References/Game Development/LÖVE/love.sound/SoundData

SoundData:getBits Removed in LÖVE 0.9.0 It has been renamed to

2025-01-10 15:47:30
SoundData:getSampleCount
  • References/Game Development/LÖVE/love.sound/SoundData

SoundData:getSampleCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the number of samples per channel

2025-01-10 15:47:30
Decoder:getDuration
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getDuration Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the duration of the sound file. It

2025-01-10 15:47:30
Decoder:getBitDepth
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getBitDepth Available since LÖVE 0.9.0 It has been renamed from

2025-01-10 15:47:30
Decoder:getBits
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getBits Removed in LÖVE 0.9.0 It has been renamed to

2025-01-10 15:47:30
Decoder:getSampleRate
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getSampleRate Returns the sample rate of the Decoder. Function Synopsis

2025-01-10 15:47:30
SoundData:getSampleRate
  • References/Game Development/LÖVE/love.sound/SoundData

SoundData:getSampleRate Returns the sample rate of the SoundData. Function Synopsis

2025-01-10 15:47:30
SoundData:getDuration
  • References/Game Development/LÖVE/love.sound/SoundData

SoundData:getDuration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the duration of the sound data.

2025-01-10 15:47:30