HU/getSoundMetaTags: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(6 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
===Visszaadott érték=== | ===Visszaadott érték=== | ||
Visszaad egy [[table|tábla]] értéket az összes elérhető adattal rendelkező hangról (kulcsok lentebb), egyébként hamis értéked ad. | |||
{{Sound_Meta_Tags}} | {{Sound_Meta_Tags}} | ||
Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Lásd még== | ||
{{Client_audio_functions hu}} | {{Client_audio_functions hu}} | ||
[[EN:getSoundMetaTags]] | [[EN:getSoundMetaTags]] | ||
[[AR:getSoundMetaTags]] | [[AR:getSoundMetaTags]] | ||
[[PT-BR:getSoundMetaTags]] | |||
==Fordította== | ==Fordította== | ||
Surge | * '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Latest revision as of 20:20, 15 August 2021
Meta tagokat csatol egy hanghoz. Melyek információkat adnak a hangról, például a címét, vagy az előadót.
Szintaxis
table getSoundMetaTags ( element sound )
OOP Syntax Help! I don't understand this!
- Method: sound:getMetaTags(...)
Kötelező Argumentumok
- sound: egy hang elem.
Visszaadott érték
Visszaad egy tábla értéket az összes elérhető adattal rendelkező hangról (kulcsok lentebb), egyébként hamis értéked ad.
- title
- artist
- album
- genre
- year
- comment
- track
- composer
- copyright
- subtitle
- album_artist
- stream_name
- stream_title
Példa
addEventHandler("onClientSoundFinishedDownload",root,function(length) local meta = getSoundMetaTags(source) outputChatBox("The sound: "..(meta.title).." has finished in :"..length.."ms.") outputChatBox("The sound meta tags: Artist:"..(meta.artist).." Album:"..(meta.album).." Genre:"..(meta.genre).." Year:"..(meta.year).." Comment:"..(meta.comment).." Track:"..(meta.track).." Composer:"..(meta.composer).." Copyright:"..(meta.copyright).." SubTitle:"..(meta.subtitle).." Album Artist:"..(meta.album_artist)..".") end)
Lásd még
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound