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.

48 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SND_SFX_H
  8. #define SND_SFX_H
  9. #if defined( _WIN32 )
  10. #pragma once
  11. #endif
  12. class CAudioSource;
  13. class CSfxTable
  14. {
  15. public:
  16. CSfxTable();
  17. // gets sound name, possible decoracted with prefixes
  18. virtual const char *getname();
  19. // gets the filename, the part after the optional prefixes
  20. const char *GetFileName();
  21. FileNameHandle_t GetFileNameHandle();
  22. void SetNamePoolIndex( int index );
  23. bool IsPrecachedSound();
  24. void OnNameChanged( const char *pName );
  25. int m_namePoolIndex;
  26. CAudioSource *pSource;
  27. bool m_bUseErrorFilename : 1;
  28. bool m_bIsUISound : 1;
  29. bool m_bIsLateLoad : 1;
  30. bool m_bMixGroupsCached : 1;
  31. byte m_mixGroupCount;
  32. // UNDONE: Use a fixed bit vec here?
  33. byte m_mixGroupList[8];
  34. private:
  35. // Only set in debug mode so you can see the name.
  36. const char *m_pDebugName;
  37. };
  38. #endif // SND_SFX_H