• Async

    Returns length of the sound file under the path in milliseconds.

    Parameters

    • musicFileName: string

    Returns number

    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.

Generated using TypeDoc