Sound:getDuration
EditReturns the duration of the Sound, in seconds.
duration = Sound:getDuration()Arguments
None
Returns
| Name | Type | Description |
| duration | number | The duration of the Sound, in seconds. |
Notes
This can be computed as (frameCount / sampleRate).