Garry's Mod Wiki

SoundDuration

SoundDuration

  number SoundDuration( string soundName )

Description

Returns the duration of the specified sound in seconds.

This function does not return the correct duration on MacOS and Linux, or if the file is a non-.wav file on Windows.

Issue Tracker: 936

Arguments

1 string soundName
The sound file path.

Returns

1 number
Sound duration in seconds.

Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 12
Generate Html 2
SaveChanges (1) 33
Render Body 0
Render Sidebar 7