HU/getSoundMetaTags: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function hu}} Used to get the meta tags attached to a sound. These provide information about the sound, for instance the title or the artist. ==Syntax==...") |
mNo edit summary |
||
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function hu}} | {{Client function hu}} | ||
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== | ||
<syntaxhighlight lang="lua">table getSoundMetaTags ( element sound )</syntaxhighlight> | <syntaxhighlight lang="lua">table getSoundMetaTags ( element sound )</syntaxhighlight> | ||
{{OOP||[[sound]]:getMetaTags}} | {{OOP||[[sound]]:getMetaTags}} | ||
=== | ===Kötelező Argumentumok=== | ||
*'''sound:''' | *'''sound:''' egy [[sound|hang]] elem. | ||
=== | ===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}} | ||
== | ==Példa== | ||
<syntaxhighlight lang="lua">addEventHandler("onClientSoundFinishedDownload",root,function(length) | <syntaxhighlight lang="lua">addEventHandler("onClientSoundFinishedDownload",root,function(length) | ||
local meta = getSoundMetaTags(source) | local meta = getSoundMetaTags(source) | ||
Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Lásd még== | ||
{{Client_audio_functions}} | {{Client_audio_functions hu}} | ||
[[EN:getSoundMetaTags]] | [[EN:getSoundMetaTags]] | ||
[[AR:getSoundMetaTags]] | [[AR:getSoundMetaTags]] | ||
[[PT-BR:getSoundMetaTags]] | |||
==Fordította== | |||
* '''''[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