You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@paramnamestring # The name of the effect previously set up with love.audio.setEffect.
508
508
---@paramenable?boolean # If false and the given effect name was previously enabled on this Source, disables the effect.
509
509
---@returnboolean success # Whether the effect was successfully applied to this Source.
@@ -512,7 +512,7 @@ function Source:setEffect(name, enable) end
512
512
---
513
513
---Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source.
514
514
---
515
-
---@overloadfun()
515
+
---@overloadfun(self: love.Source)
516
516
---@paramsettings{type: love.FilterType, volume: number, highgain: number, lowgain: number} # The filter settings to use for this Source, with the following fields:
517
517
---@returnboolean success # Whether the filter was successfully applied to the Source.
---@paramaxislove.GamepadAxis # The virtual gamepad axis to get the binding for.
126
126
---@returnlove.JoystickInputType inputtype # The type of input the virtual gamepad axis is bound to.
127
127
---@returnnumber inputindex # The index of the Joystick's button, axis or hat that the virtual gamepad axis is bound to.
@@ -208,8 +208,8 @@ function Joystick:isVibrationSupported() end
208
208
---
209
209
---Sets the vibration motor speeds on a Joystick with rumble support. Most common gamepads have this functionality, although not all drivers give proper support. Use Joystick:isVibrationSupported to check.
Copy file name to clipboardExpand all lines: meta/3rd/love2d/library/love.sound.lua
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ function SoundData:getDuration() end
94
94
---
95
95
---Gets the value of the sample-point at the specified position. For stereo SoundData objects, the data from the left and right channels are interleaved in that order.
---@paraminumber # An integer value specifying the position of the sample (starting at 0).
99
99
---@returnnumber sample # The normalized samplepoint (range -1.0 to 1.0).
100
100
functionSoundData:getSample(i) end
@@ -114,7 +114,7 @@ function SoundData:getSampleRate() end
114
114
---
115
115
---Sets the value of the sample-point at the specified position. For stereo SoundData objects, the data from the left and right channels are interleaved in that order.
0 commit comments