summaryrefslogtreecommitdiff
path: root/src/client/snd_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_main.c')
-rw-r--r--src/client/snd_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/snd_main.c b/src/client/snd_main.c
index ebb0e9da..b8dfdf36 100644
--- a/src/client/snd_main.c
+++ b/src/client/snd_main.c
@@ -59,6 +59,7 @@ static qboolean S_ValidSoundInterface( soundInterface_t *si )
if( !si->DisableSounds ) return qfalse;
if( !si->BeginRegistration ) return qfalse;
if( !si->RegisterSound ) return qfalse;
+ if( !si->SoundDuration ) return qfalse;
if( !si->ClearSoundBuffer ) return qfalse;
if( !si->SoundInfo ) return qfalse;
if( !si->SoundList ) return qfalse;
@@ -271,6 +272,19 @@ sfxHandle_t S_RegisterSound( const char *sample, qboolean compressed )
/*
=================
+S_SoundDuration
+=================
+*/
+int S_SoundDuration( sfxHandle_t handle )
+{
+ if( si.SoundDuration )
+ return si.SoundDuration( handle );
+ else
+ return 0;
+}
+
+/*
+=================
S_ClearSoundBuffer
=================
*/