Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef VOX_H
  14. #define VOX_H
  15. #pragma once
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. struct sfxcache_t;
  20. struct channel_t;
  21. class CUtlSymbol;
  22. extern void VOX_Init( void );
  23. extern void VOX_Shutdown( void );
  24. extern void VOX_ReadSentenceFile( const char *psentenceFileName );
  25. extern int VOX_SentenceCount( void );
  26. extern void VOX_LoadSound( channel_t *pchan, const char *psz );
  27. // UNDONE: Improve the interface of this call, it returns sentence data AND the sentence index
  28. extern char *VOX_LookupString( const char *pSentenceName, int *psentencenum, bool *pbEmitCaption = NULL, CUtlSymbol *pCaptionSymbol = NULL, float * pflDuration = NULL );
  29. extern void VOX_PrecacheSentenceGroup( class IEngineSound *pSoundSystem, const char *pGroupName, const char *pPathOverride = NULL );
  30. extern const char *VOX_SentenceNameFromIndex( int sentencenum );
  31. extern float VOX_SentenceLength( int sentence_num );
  32. extern const char *VOX_GroupNameFromIndex( int groupIndex );
  33. extern int VOX_GroupIndexFromName( const char *pGroupName );
  34. extern int VOX_GroupPick( int isentenceg, char *szfound, int strLen );
  35. extern int VOX_GroupPickSequential( int isentenceg, char *szfound, int szfoundLen, int ipick, int freset );
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif // VOX_H