getSoundMetaTags
Cliente
Lee las etiquetas del archivo de audio (ID3 del MP3, comentarios del OGG y del FLAC, INFO del WAV).
table|string|false getSoundMetaTags(sound sound [, string format = ""])
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| sound | sound | El elemento sound, o un elemento dui para el sonido del navegador. |
| format | string | Un formato de etiquetas como %ARTI - %TITL. Vacío devuelve la tabla con todas las etiquetas.por defecto "" |
Retorno
Sin format, una tabla con los campos que tiene el archivo: title, artist, album, genre, year, comment, track, composer, copyright, subtitle, album_artist. Con format, el texto armado. false si el texto sale vacío o no se encontró el sonido.
Ejemplo
local music = playSound("sounds/track.mp3")
local tags = getSoundMetaTags(music)
outputDebugString(("Sonando ahora: %s - %s"):format(tags.artist or "?", tags.title or "?"))