This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/snd_dx/s_vox.c

22 lines
613 B
C
Raw Normal View History

2010-04-21 22:00:00 +02:00
//=======================================================================
// Copyright XashXT Group 2010 <20>
// s_vox.c - npc sentences
//=======================================================================
#include "sound.h"
#include "const.h"
void VOX_SetChanVol( channel_t *ch )
{
float scale = 1.0f; // FIXME: get volume from words
if( scale == 1.0f ) return;
ch->rightvol = (int)( ch->rightvol * scale );
ch->leftvol = (int)( ch->leftvol * scale );
}
// link all sounds in sentence, start playing first word.
void VOX_LoadSound( channel_t *pchan, const char *pszin )
{
}