PT-BR/getSoundBPM
Jump to navigation
Jump to search
Essa função obtém as batidas por minuto de um elemento de áudio.
Aviso: Essa é uma função pesada e travará o cliente por cerca de 1-3 segundos. Além disso, tentar obter as BPM de um áudio logo após sua criação não funcionará. Você precisará de um setTimer para fazer isso. |
Sintaxe
int getSoundBPM ( element audio )
Sintaxe POO(OOP) Não entendeu o que significa isso?
- Método: audio:getBPM(...)
Argumentos necessários
- audio: um elemento de áudio criado por playSound ou playSound3D
Retorno
Retorna as batidas por minuto de um determinado áudio.
Exemplo
Click to collapse [-]
Clientfunction bpm () -- Versão extendida (para facilitar o entendimento) audio = playSound ( "song.mp3" ) -- Toca o áudio batidas = getSoundBPM ( audio ) -- Obtém as batidas por minuto de 'audio' outputChatBox ( "Batidas por minuto: " .. batidas ) -- Exibe as BPM no chat end addCommandHandler ( "bpm", bpm )
Requisitos
Minimum server version | n/a |
---|---|
Minimum client version | 1.3.0-9.04162 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04162" />
Veja também
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundBufferLength
- getSoundEffectParameters
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX3D
- playSFX
- playSound3D
- playSound
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound
Shared