From 94da06c69fbae22e101f8aa3fec720aac95f3dfa Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 12 Mar 2008 05:21:56 +0000 Subject: [PATCH] addressed amb1498 - GetSoundDuration() is broken on valve's end --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401934 --- plugins/include/sdktools_sound.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/include/sdktools_sound.inc b/plugins/include/sdktools_sound.inc index c60c19a6..aa51cfa2 100644 --- a/plugins/include/sdktools_sound.inc +++ b/plugins/include/sdktools_sound.inc @@ -130,11 +130,13 @@ enum native PrefetchSound(const String:nane[]); /** - * Gets a sound's duration (does not work for mp3s). + * This function is not known to work, and may crash. You should + * not use it. It is provided for backwards compatibility only. * * @param name Sound file name relative to the "sounds" folder. * @return Duration in seconds. */ +#pragma deprecated Does not work, may crash. native Float:GetSoundDuration(const String:name[]); /**