Skip to content

Commit 6202544

Browse files
committed
fix #902
1 parent 6b3a0d0 commit 6202544

24 files changed

+1095
-1094
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* `FIX` [#884](https://github.com/sumneko/lua-language-server/issues/884)
1616
* `FIX` [#885](https://github.com/sumneko/lua-language-server/issues/885)
1717
* `FIX` [#886](https://github.com/sumneko/lua-language-server/issues/886)
18+
* `FIX` [#902](https://github.com/sumneko/lua-language-server/issues/902)
1819

1920
## 2.5.6
2021
`2021-12-27`

meta/3rd/love2d/library/love.audio.lua

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -593,139 +593,139 @@ function Source:tell(unit) end
593593
---
594594
---Extended information can be found in the chapter "3.4. Attenuation By Distance" of the OpenAL 1.1 specification.
595595
---
596-
---@class love.DistanceModel
596+
---@alias love.DistanceModel
597597
---
598598
---Sources do not get attenuated.
599599
---
600-
---@field none integer
600+
---| '"none"'
601601
---
602602
---Inverse distance attenuation.
603603
---
604-
---@field inverse integer
604+
---| '"inverse"'
605605
---
606606
---Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named '''inverse clamped'''.
607607
---
608-
---@field inverseclamped integer
608+
---| '"inverseclamped"'
609609
---
610610
---Linear attenuation.
611611
---
612-
---@field linear integer
612+
---| '"linear"'
613613
---
614614
---Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named '''linear clamped'''.
615615
---
616-
---@field linearclamped integer
616+
---| '"linearclamped"'
617617
---
618618
---Exponential attenuation.
619619
---
620-
---@field exponent integer
620+
---| '"exponent"'
621621
---
622622
---Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named '''exponent clamped'''.
623623
---
624-
---@field exponentclamped integer
624+
---| '"exponentclamped"'
625625

626626
---
627627
---The different types of effects supported by love.audio.setEffect.
628628
---
629-
---@class love.EffectType
629+
---@alias love.EffectType
630630
---
631631
---Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker".
632632
---
633-
---@field chorus integer
633+
---| '"chorus"'
634634
---
635635
---Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time.
636636
---
637-
---@field compressor integer
637+
---| '"compressor"'
638638
---
639639
---Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound.
640640
---
641-
---@field distortion integer
641+
---| '"distortion"'
642642
---
643643
---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.
644644
---
645-
---@field echo integer
645+
---| '"echo"'
646646
---
647647
---Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer.
648648
---
649-
---@field equalizer integer
649+
---| '"equalizer"'
650650
---
651651
---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.
652652
---
653-
---@field flanger integer
653+
---| '"flanger"'
654654
---
655655
---Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings.
656656
---
657-
---@field reverb integer
657+
---| '"reverb"'
658658
---
659659
---An implementation of amplitude modulation; multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones.
660660
---
661-
---@field ringmodulator integer
661+
---| '"ringmodulator"'
662662

663663
---
664664
---The different types of waveforms that can be used with the '''ringmodulator''' EffectType.
665665
---
666-
---@class love.EffectWaveform
666+
---@alias love.EffectWaveform
667667
---
668668
---A sawtooth wave, also known as a ramp wave. Named for its linear rise, and (near-)instantaneous fall along time.
669669
---
670-
---@field sawtooth integer
670+
---| '"sawtooth"'
671671
---
672672
---A sine wave. Follows a trigonometric sine function.
673673
---
674-
---@field sine integer
674+
---| '"sine"'
675675
---
676676
---A square wave. Switches between high and low states (near-)instantaneously.
677677
---
678-
---@field square integer
678+
---| '"square"'
679679
---
680680
---A triangle wave. Follows a linear rise and fall that repeats periodically.
681681
---
682-
---@field triangle integer
682+
---| '"triangle"'
683683

684684
---
685685
---Types of filters for Sources.
686686
---
687-
---@class love.FilterType
687+
---@alias love.FilterType
688688
---
689689
---Low-pass filter. High frequency sounds are attenuated.
690690
---
691-
---@field lowpass integer
691+
---| '"lowpass"'
692692
---
693693
---High-pass filter. Low frequency sounds are attenuated.
694694
---
695-
---@field highpass integer
695+
---| '"highpass"'
696696
---
697697
---Band-pass filter. Both high and low frequency sounds are attenuated based on the given parameters.
698698
---
699-
---@field bandpass integer
699+
---| '"bandpass"'
700700

701701
---
702702
---Types of audio sources.
703703
---
704704
---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.
705705
---
706-
---@class love.SourceType
706+
---@alias love.SourceType
707707
---
708708
---The whole audio is decoded.
709709
---
710-
---@field static integer
710+
---| '"static"'
711711
---
712712
---The audio is decoded in chunks when needed.
713713
---
714-
---@field stream integer
714+
---| '"stream"'
715715
---
716716
---The audio must be manually queued by the user.
717717
---
718-
---@field queue integer
718+
---| '"queue"'
719719

720720
---
721721
---Units that represent time.
722722
---
723-
---@class love.TimeUnit
723+
---@alias love.TimeUnit
724724
---
725725
---Regular seconds.
726726
---
727-
---@field seconds integer
727+
---| '"seconds"'
728728
---
729729
---Audio samples.
730730
---
731-
---@field samples integer
731+
---| '"samples"'

meta/3rd/love2d/library/love.data.lua

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -135,75 +135,75 @@ function CompressedData:getFormat() end
135135
---
136136
---Compressed data formats.
137137
---
138-
---@class love.CompressedDataFormat
138+
---@alias love.CompressedDataFormat
139139
---
140140
---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.
141141
---
142-
---@field lz4 integer
142+
---| '"lz4"'
143143
---
144144
---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.
145145
---
146-
---@field zlib integer
146+
---| '"zlib"'
147147
---
148148
---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.
149149
---
150-
---@field gzip integer
150+
---| '"gzip"'
151151
---
152152
---Raw DEFLATE-compressed data (no header).
153153
---
154-
---@field deflate integer
154+
---| '"deflate"'
155155

156156
---
157157
---Return type of various data-returning functions.
158158
---
159-
---@class love.ContainerType
159+
---@alias love.ContainerType
160160
---
161161
---Return type is ByteData.
162162
---
163-
---@field data integer
163+
---| '"data"'
164164
---
165165
---Return type is string.
166166
---
167-
---@field string integer
167+
---| '"string"'
168168

169169
---
170170
---Encoding format used to encode or decode data.
171171
---
172-
---@class love.EncodeFormat
172+
---@alias love.EncodeFormat
173173
---
174174
---Encode/decode data as base64 binary-to-text encoding.
175175
---
176-
---@field base64 integer
176+
---| '"base64"'
177177
---
178178
---Encode/decode data as hexadecimal string.
179179
---
180-
---@field hex integer
180+
---| '"hex"'
181181

182182
---
183183
---Hash algorithm of love.data.hash.
184184
---
185-
---@class love.HashFunction
185+
---@alias love.HashFunction
186186
---
187187
---MD5 hash algorithm (16 bytes).
188188
---
189-
---@field md5 integer
189+
---| '"md5"'
190190
---
191191
---SHA1 hash algorithm (20 bytes).
192192
---
193-
---@field sha1 integer
193+
---| '"sha1"'
194194
---
195195
---SHA2 hash algorithm with message digest size of 224 bits (28 bytes).
196196
---
197-
---@field sha224 integer
197+
---| '"sha224"'
198198
---
199199
---SHA2 hash algorithm with message digest size of 256 bits (32 bytes).
200200
---
201-
---@field sha256 integer
201+
---| '"sha256"'
202202
---
203203
---SHA2 hash algorithm with message digest size of 384 bits (48 bytes).
204204
---
205-
---@field sha384 integer
205+
---| '"sha384"'
206206
---
207207
---SHA2 hash algorithm with message digest size of 512 bits (64 bytes).
208208
---
209-
---@field sha512 integer
209+
---| '"sha512"'

0 commit comments

Comments
 (0)