AR/getSoundEffects: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 49: | Line 49: | ||
[[de:getSoundEffects]] | [[de:getSoundEffects]] | ||
[[RO:getSoundEffects]] | [[RO:getSoundEffects]] | ||
[[PT-BR:getSoundEffects]] | |||
Latest revision as of 18:41, 15 August 2021
هذه الوظيفة تجلب حالات تأثيرات الصوت في جدول
تركيب الجملة
table getSoundEffects ( element sound )
الفرغات المطلوبة
- الصوت: sound عنصر.
المعطيات
تنتج جدول فيه اسماء الحالات كمفاتيح للقيم
مثال:
{
gargle = false,
compressor = false,
echo = true,
i3dl2reverb = true,
distortion = false,
chorus = false,
parameq = false,
reverb = false,
flanger = false
}
أسماء تأثيرات الصوت:
- gargle
- compressor
- echo
- i3dl2reverb
- distortion
- chorus
- parameq
- reverb
- flanger
مثال:
function switchEffects(sound) for _,v in ipairs(getSoundEffects(sound)) do -- تدور علي كل التأثيرات في الجدول if v == "gargle" then -- اذا كان تأثير الصوت 'gargle' setSoundEffectEnabled(sound, "gargle", false) -- تعطيل تأثير 'gargle' end end end
أنظر أيضاً
- getSoundBufferLength
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance