diff options
Diffstat (limited to 'meta/3rd/love2d/library/love.audio.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.audio.lua | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.audio.lua b/meta/3rd/love2d/library/love.audio.lua index cdf2ed05..386f8382 100644 --- a/meta/3rd/love2d/library/love.audio.lua +++ b/meta/3rd/love2d/library/love.audio.lua @@ -536,3 +536,42 @@ function Source:stop() end ---@param unit love.TimeUnit # The type of unit for the return value. ---@return number position # The currently playing position of the Source. function Source:tell(unit) end + +---@class love.DistanceModel +---@field none integer # Sources do not get attenuated. +---@field inverse integer # Inverse distance attenuation. +---@field inverseclamped integer # Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named '''inverse clamped'''. +---@field linear integer # Linear attenuation. +---@field linearclamped integer # Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named '''linear clamped'''. +---@field exponent integer # Exponential attenuation. +---@field exponentclamped integer # Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named '''exponent clamped'''. + +---@class love.EffectType +---@field chorus integer # Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker". +---@field compressor integer # Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time. +---@field distortion integer # Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound. +---@field echo integer # Decaying feedback based effect, on the order of seconds. Also known as delay; causes the sound to repeat at regular intervals at a decreasing volume. +---@field equalizer integer # Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer. +---@field flanger integer # Plays two copies of the sound; while varying the phase, or equivalently delaying one of them, by amounts on the order of milliseconds, resulting in phasing sounds. +---@field reverb integer # Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings. +---@field ringmodulator integer # An implementation of amplitude modulation; multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones. + +---@class love.EffectWaveform +---@field sawtooth integer # A sawtooth wave, also known as a ramp wave. Named for its linear rise, and (near-)instantaneous fall along time. +---@field sine integer # A sine wave. Follows a trigonometric sine function. +---@field square integer # A square wave. Switches between high and low states (near-)instantaneously. +---@field triangle integer # A triangle wave. Follows a linear rise and fall that repeats periodically. + +---@class love.FilterType +---@field lowpass integer # Low-pass filter. High frequency sounds are attenuated. +---@field highpass integer # High-pass filter. Low frequency sounds are attenuated. +---@field bandpass integer # Band-pass filter. Both high and low frequency sounds are attenuated based on the given parameters. + +---@class love.SourceType +---@field static integer # The whole audio is decoded. +---@field stream integer # The audio is decoded in chunks when needed. +---@field queue integer # The audio must be manually queued by the user. + +---@class love.TimeUnit +---@field seconds integer # Regular seconds. +---@field samples integer # Audio samples. |