getSoundSpeed
Shared
Returns a sound's speed.
float|false getSoundSpeed(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element. On the client a dui element also works, for the browser's sound. |
Returns
The speed (1 is normal), or false if the sound was not found.
Example
outputDebugString("Speed: " .. getSoundSpeed(music))