Global/SoundDuration

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Bug)
m (Current status of this error is mixed so let')
 
Line 2: Line 2:
 
|Description=Returns the duration of the sound specified in seconds.
 
|Description=Returns the duration of the sound specified in seconds.
  
{{Bug|Issue=936|This only works properly for .wav files serverside.}}
+
{{Bug|Issue=936|This only works properly for .wav files.}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
|Name=SoundDuration
 
|Parent=Global
 
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 06:51, 1 October 2019

 SoundDuration( )

Description

Returns the duration of the sound specified in seconds.

BUG

This only works properly for .wav files.

Issue Tracker: #936

Arguments

string soundName

The sound file path.

Returns

number

Sound duration in seconds.
Personal tools
Navigation