Garry's Mod Wiki

Revision Difference

Global.SoundDuration#529229

<function name="SoundDuration" parent="Global" type="libraryfunc"> <description> Returns the duration of the specified sound in seconds. <bug issue="936">On Linux and MacOS, this function will report .wav files as being 0 seconds long.</bug> <bug issue="936">This function doesn't work proprely on MacOS and Linux.</bug> </description> <realm>Shared</realm> <args> <arg name="soundName" type="string">The sound file path.</arg> </args> <rets> <ret name="" type="number">Sound duration in seconds.</ret> </rets> </function>