GetSoundDuration

Parameters
soundHandle sound
async
This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
comment

Returns sound length in milliseconds.

note

Beweare that this might return different values for different players if you use native wc3-sounds as these can have different length in different languages. This can cause desyncs if you use the duration for non-local stuff.

patch

1.00

return type
integer
Source code
native GetSoundDuration             takes sound soundHandle returns integer
Source
common.j
wc3modding.com
GetSoundDuration