diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/audio/public/vox.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/audio/public/vox.h')
| -rw-r--r-- | engine/audio/public/vox.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/engine/audio/public/vox.h b/engine/audio/public/vox.h new file mode 100644 index 0000000..6b50008 --- /dev/null +++ b/engine/audio/public/vox.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VOX_H +#define VOX_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +struct sfxcache_t; +struct channel_t; + +class CUtlSymbol; + +extern void VOX_Init( void ); +extern void VOX_Shutdown( void ); +extern void VOX_ReadSentenceFile( const char *psentenceFileName ); +extern int VOX_SentenceCount( void ); +extern void VOX_LoadSound( channel_t *pchan, const char *psz ); +// UNDONE: Improve the interface of this call, it returns sentence data AND the sentence index +extern char *VOX_LookupString( const char *pSentenceName, int *psentencenum, bool *pbEmitCaption = NULL, CUtlSymbol *pCaptionSymbol = NULL, float * pflDuration = NULL ); +extern void VOX_PrecacheSentenceGroup( class IEngineSound *pSoundSystem, const char *pGroupName, const char *pPathOverride = NULL ); +extern const char *VOX_SentenceNameFromIndex( int sentencenum ); +extern float VOX_SentenceLength( int sentence_num ); +extern const char *VOX_GroupNameFromIndex( int groupIndex ); +extern int VOX_GroupIndexFromName( const char *pGroupName ); +extern int VOX_GroupPick( int isentenceg, char *szfound, int strLen ); +extern int VOX_GroupPickSequential( int isentenceg, char *szfound, int szfoundLen, int ipick, int freset ); + +#ifdef __cplusplus +} +#endif + +#endif // VOX_H |