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
Copy file name to clipboardExpand all lines: meta/3rd/love2d/library/love.audio.lua
+33-33Lines changed: 33 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -593,139 +593,139 @@ function Source:tell(unit) end
593
593
---
594
594
---Extended information can be found in the chapter "3.4. Attenuation By Distance" of the OpenAL 1.1 specification.
595
595
---
596
-
---@classlove.DistanceModel
596
+
---@aliaslove.DistanceModel
597
597
---
598
598
---Sources do not get attenuated.
599
599
---
600
-
---@fieldnoneinteger
600
+
---| '"none"'
601
601
---
602
602
---Inverse distance attenuation.
603
603
---
604
-
---@fieldinverseinteger
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
-
---@fieldinverseclampedinteger
608
+
---| '"inverseclamped"'
609
609
---
610
610
---Linear attenuation.
611
611
---
612
-
---@fieldlinearinteger
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
-
---@fieldlinearclampedinteger
616
+
---| '"linearclamped"'
617
617
---
618
618
---Exponential attenuation.
619
619
---
620
-
---@fieldexponentinteger
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
-
---@fieldexponentclampedinteger
624
+
---| '"exponentclamped"'
625
625
626
626
---
627
627
---The different types of effects supported by love.audio.setEffect.
628
628
---
629
-
---@classlove.EffectType
629
+
---@aliaslove.EffectType
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
-
---@fieldchorusinteger
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
-
---@fieldcompressorinteger
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
-
---@fielddistortioninteger
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
-
---@fieldechointeger
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
-
---@fieldequalizerinteger
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
-
---@fieldflangerinteger
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
-
---@fieldreverbinteger
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
-
---@fieldringmodulatorinteger
661
+
---| '"ringmodulator"'
662
662
663
663
---
664
664
---The different types of waveforms that can be used with the '''ringmodulator''' EffectType.
665
665
---
666
-
---@classlove.EffectWaveform
666
+
---@aliaslove.EffectWaveform
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
-
---@fieldsawtoothinteger
670
+
---| '"sawtooth"'
671
671
---
672
672
---A sine wave. Follows a trigonometric sine function.
673
673
---
674
-
---@fieldsineinteger
674
+
---| '"sine"'
675
675
---
676
676
---A square wave. Switches between high and low states (near-)instantaneously.
677
677
---
678
-
---@fieldsquareinteger
678
+
---| '"square"'
679
679
---
680
680
---A triangle wave. Follows a linear rise and fall that repeats periodically.
681
681
---
682
-
---@fieldtriangleinteger
682
+
---| '"triangle"'
683
683
684
684
---
685
685
---Types of filters for Sources.
686
686
---
687
-
---@classlove.FilterType
687
+
---@aliaslove.FilterType
688
688
---
689
689
---Low-pass filter. High frequency sounds are attenuated.
690
690
---
691
-
---@fieldlowpassinteger
691
+
---| '"lowpass"'
692
692
---
693
693
---High-pass filter. Low frequency sounds are attenuated.
694
694
---
695
-
---@fieldhighpassinteger
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
-
---@fieldbandpassinteger
699
+
---| '"bandpass"'
700
700
701
701
---
702
702
---Types of audio sources.
703
703
---
704
704
---A good rule of thumb is to use stream for music files and static for all short sound effects. Basically, you want to avoid loading large files into memory at once.
Copy file name to clipboardExpand all lines: meta/3rd/love2d/library/love.data.lua
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -135,75 +135,75 @@ function CompressedData:getFormat() end
135
135
---
136
136
---Compressed data formats.
137
137
---
138
-
---@classlove.CompressedDataFormat
138
+
---@aliaslove.CompressedDataFormat
139
139
---
140
140
---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.
141
141
---
142
-
---@fieldlz4integer
142
+
---| '"lz4"'
143
143
---
144
144
---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.
145
145
---
146
-
---@fieldzlibinteger
146
+
---| '"zlib"'
147
147
---
148
148
---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.
149
149
---
150
-
---@fieldgzipinteger
150
+
---| '"gzip"'
151
151
---
152
152
---Raw DEFLATE-compressed data (no header).
153
153
---
154
-
---@fielddeflateinteger
154
+
---| '"deflate"'
155
155
156
156
---
157
157
---Return type of various data-returning functions.
158
158
---
159
-
---@classlove.ContainerType
159
+
---@aliaslove.ContainerType
160
160
---
161
161
---Return type is ByteData.
162
162
---
163
-
---@fielddatainteger
163
+
---| '"data"'
164
164
---
165
165
---Return type is string.
166
166
---
167
-
---@fieldstringinteger
167
+
---| '"string"'
168
168
169
169
---
170
170
---Encoding format used to encode or decode data.
171
171
---
172
-
---@classlove.EncodeFormat
172
+
---@aliaslove.EncodeFormat
173
173
---
174
174
---Encode/decode data as base64 binary-to-text encoding.
175
175
---
176
-
---@fieldbase64integer
176
+
---| '"base64"'
177
177
---
178
178
---Encode/decode data as hexadecimal string.
179
179
---
180
-
---@fieldhexinteger
180
+
---| '"hex"'
181
181
182
182
---
183
183
---Hash algorithm of love.data.hash.
184
184
---
185
-
---@classlove.HashFunction
185
+
---@aliaslove.HashFunction
186
186
---
187
187
---MD5 hash algorithm (16 bytes).
188
188
---
189
-
---@fieldmd5integer
189
+
---| '"md5"'
190
190
---
191
191
---SHA1 hash algorithm (20 bytes).
192
192
---
193
-
---@fieldsha1integer
193
+
---| '"sha1"'
194
194
---
195
195
---SHA2 hash algorithm with message digest size of 224 bits (28 bytes).
196
196
---
197
-
---@fieldsha224integer
197
+
---| '"sha224"'
198
198
---
199
199
---SHA2 hash algorithm with message digest size of 256 bits (32 bytes).
200
200
---
201
-
---@fieldsha256integer
201
+
---| '"sha256"'
202
202
---
203
203
---SHA2 hash algorithm with message digest size of 384 bits (48 bytes).
204
204
---
205
-
---@fieldsha384integer
205
+
---| '"sha384"'
206
206
---
207
207
---SHA2 hash algorithm with message digest size of 512 bits (64 bytes).
0 commit comments