Garry's Mod Wiki

SoundDuration

number SoundDuration( string soundName )

Description

Returns the duration of the specified sound in seconds.

On Linux and MacOS, this function will report .wav files as being 0 seconds long.

Issue Tracker: 936

Arguments

1 string soundName
The sound file path.

Returns

1 number
Sound duration in seconds.

Page Links


Special Pages


Wikis

?

Render Time: 70ms

DB GetPage 44
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 12