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
---@paramsettings{type: love.EffectType, volume: number} # The settings to use for this effect, with the following fields:
167
167
---@returnboolean success # Whether the effect was successfully created.
@@ -355,7 +355,7 @@ function Source:getDuration(unit) end
355
355
---This function returns nil if the effect was applied with no filter settings associated to it.
356
356
---
357
357
---@paramnamestring # The name of the effect.
358
-
---@paramfiltersettings?table # An optional empty table that will be filled with the filter settings.
358
+
---@paramfiltersettingstable # An optional empty table that will be filled with the filter settings.
359
359
---@return{volume: number, highgain: number, lowgain: number} filtersettings # The settings for the filter associated to this effect, or nil if the effect is not present in this Source or has no filter associated. The table has the following fields:
360
360
functionSource:getEffect(name, filtersettings) end
361
361
@@ -597,31 +597,31 @@ function Source:tell(unit) end
597
597
---
598
598
---Sources do not get attenuated.
599
599
---
600
-
---| '"none"'
600
+
---| "none"
601
601
---
602
602
---Inverse distance attenuation.
603
603
---
604
-
---| '"inverse"'
604
+
---| "inverse"
605
605
---
606
606
---Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named '''inverse clamped'''.
607
607
---
608
-
---| '"inverseclamped"'
608
+
---| "inverseclamped"
609
609
---
610
610
---Linear attenuation.
611
611
---
612
-
---| '"linear"'
612
+
---| "linear"
613
613
---
614
614
---Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named '''linear clamped'''.
615
615
---
616
-
---| '"linearclamped"'
616
+
---| "linearclamped"
617
617
---
618
618
---Exponential attenuation.
619
619
---
620
-
---| '"exponent"'
620
+
---| "exponent"
621
621
---
622
622
---Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named '''exponent clamped'''.
623
623
---
624
-
---| '"exponentclamped"'
624
+
---| "exponentclamped"
625
625
626
626
---
627
627
---The different types of effects supported by love.audio.setEffect.
@@ -630,35 +630,35 @@ function Source:tell(unit) end
630
630
---
631
631
---Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker".
632
632
---
633
-
---| '"chorus"'
633
+
---| "chorus"
634
634
---
635
635
---Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time.
636
636
---
637
-
---| '"compressor"'
637
+
---| "compressor"
638
638
---
639
639
---Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound.
640
640
---
641
-
---| '"distortion"'
641
+
---| "distortion"
642
642
---
643
643
---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.
644
644
---
645
-
---| '"echo"'
645
+
---| "echo"
646
646
---
647
647
---Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer.
648
648
---
649
-
---| '"equalizer"'
649
+
---| "equalizer"
650
650
---
651
651
---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.
652
652
---
653
-
---| '"flanger"'
653
+
---| "flanger"
654
654
---
655
655
---Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings.
656
656
---
657
-
---| '"reverb"'
657
+
---| "reverb"
658
658
---
659
659
---An implementation of amplitude modulation; multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones.
660
660
---
661
-
---| '"ringmodulator"'
661
+
---| "ringmodulator"
662
662
663
663
---
664
664
---The different types of waveforms that can be used with the '''ringmodulator''' EffectType.
@@ -667,19 +667,19 @@ function Source:tell(unit) end
667
667
---
668
668
---A sawtooth wave, also known as a ramp wave. Named for its linear rise, and (near-)instantaneous fall along time.
669
669
---
670
-
---| '"sawtooth"'
670
+
---| "sawtooth"
671
671
---
672
672
---A sine wave. Follows a trigonometric sine function.
673
673
---
674
-
---| '"sine"'
674
+
---| "sine"
675
675
---
676
676
---A square wave. Switches between high and low states (near-)instantaneously.
677
677
---
678
-
---| '"square"'
678
+
---| "square"
679
679
---
680
680
---A triangle wave. Follows a linear rise and fall that repeats periodically.
681
681
---
682
-
---| '"triangle"'
682
+
---| "triangle"
683
683
684
684
---
685
685
---Types of filters for Sources.
@@ -688,15 +688,15 @@ function Source:tell(unit) end
688
688
---
689
689
---Low-pass filter. High frequency sounds are attenuated.
690
690
---
691
-
---| '"lowpass"'
691
+
---| "lowpass"
692
692
---
693
693
---High-pass filter. Low frequency sounds are attenuated.
694
694
---
695
-
---| '"highpass"'
695
+
---| "highpass"
696
696
---
697
697
---Band-pass filter. Both high and low frequency sounds are attenuated based on the given parameters.
698
698
---
699
-
---| '"bandpass"'
699
+
---| "bandpass"
700
700
701
701
---
702
702
---Types of audio sources.
@@ -707,15 +707,15 @@ function Source:tell(unit) end
707
707
---
708
708
---The whole audio is decoded.
709
709
---
710
-
---| '"static"'
710
+
---| "static"
711
711
---
712
712
---The audio is decoded in chunks when needed.
713
713
---
714
-
---| '"stream"'
714
+
---| "stream"
715
715
---
716
716
---The audio must be manually queued by the user.
717
717
---
718
-
---| '"queue"'
718
+
---| "queue"
719
719
720
720
---
721
721
---Units that represent time.
@@ -724,8 +724,8 @@ function Source:tell(unit) end
---@paramdatastringstring # The byte string to copy.
77
77
---@returnlove.ByteData bytedata # The new Data object.
@@ -103,7 +103,7 @@ function love.data.pack(container, format, v1, ...) end
103
103
---
104
104
---This function behaves the same as Lua 5.3's string.unpack.
105
105
---
106
-
---@overloadfun(format: string, data: love.Data, pos: number):number|boolean|string, number|boolean|string, number
106
+
---@overloadfun(format: string, data: love.Data, pos?: number):number|boolean|string, number|boolean|string, number
107
107
---@paramformatstring # A string determining how the values were packed. Follows the rules of Lua 5.3's string.pack format strings.
108
108
---@paramdatastringstring # A string containing the packed (serialized) data.
109
109
---@parampos?number # Where to start reading in the string. Negative values can be used to read relative from the end of the string.
@@ -140,19 +140,19 @@ function CompressedData:getFormat() end
140
140
---
141
141
---The LZ4 compression format. Compresses and decompresses very quickly, but the compression ratio is not the best. LZ4-HC is used when compression level 9 is specified. Some benchmarks are available here.
142
142
---
143
-
---| '"lz4"'
143
+
---| "lz4"
144
144
---
145
145
---The zlib format is DEFLATE-compressed data with a small bit of header data. Compresses relatively slowly and decompresses moderately quickly, and has a decent compression ratio.
146
146
---
147
-
---| '"zlib"'
147
+
---| "zlib"
148
148
---
149
149
---The gzip format is DEFLATE-compressed data with a slightly larger header than zlib. Since it uses DEFLATE it has the same compression characteristics as the zlib format.
150
150
---
151
-
---| '"gzip"'
151
+
---| "gzip"
152
152
---
153
153
---Raw DEFLATE-compressed data (no header).
154
154
---
155
-
---| '"deflate"'
155
+
---| "deflate"
156
156
157
157
---
158
158
---Return type of various data-returning functions.
@@ -161,11 +161,11 @@ function CompressedData:getFormat() end
161
161
---
162
162
---Return type is ByteData.
163
163
---
164
-
---| '"data"'
164
+
---| "data"
165
165
---
166
166
---Return type is string.
167
167
---
168
-
---| '"string"'
168
+
---| "string"
169
169
170
170
---
171
171
---Encoding format used to encode or decode data.
@@ -174,11 +174,11 @@ function CompressedData:getFormat() end
174
174
---
175
175
---Encode/decode data as base64 binary-to-text encoding.
176
176
---
177
-
---| '"base64"'
177
+
---| "base64"
178
178
---
179
179
---Encode/decode data as hexadecimal string.
180
180
---
181
-
---| '"hex"'
181
+
---| "hex"
182
182
183
183
---
184
184
---Hash algorithm of love.data.hash.
@@ -187,24 +187,24 @@ function CompressedData:getFormat() end
187
187
---
188
188
---MD5 hash algorithm (16 bytes).
189
189
---
190
-
---| '"md5"'
190
+
---| "md5"
191
191
---
192
192
---SHA1 hash algorithm (20 bytes).
193
193
---
194
-
---| '"sha1"'
194
+
---| "sha1"
195
195
---
196
196
---SHA2 hash algorithm with message digest size of 224 bits (28 bytes).
197
197
---
198
-
---| '"sha224"'
198
+
---| "sha224"
199
199
---
200
200
---SHA2 hash algorithm with message digest size of 256 bits (32 bytes).
201
201
---
202
-
---| '"sha256"'
202
+
---| "sha256"
203
203
---
204
204
---SHA2 hash algorithm with message digest size of 384 bits (48 bytes).
205
205
---
206
-
---| '"sha384"'
206
+
---| "sha384"
207
207
---
208
208
---SHA2 hash algorithm with message digest size of 512 bits (64 bytes).
0 commit comments