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.

53 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // A class representing a sound
  4. //
  5. //=============================================================================
  6. #ifndef DMESOUND_H
  7. #define DMESOUND_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. //-----------------------------------------------------------------------------
  13. // A class representing a camera
  14. //-----------------------------------------------------------------------------
  15. class CDmeSound : public CDmElement
  16. {
  17. DEFINE_ELEMENT( CDmeSound, CDmElement );
  18. public:
  19. CDmaString m_SoundName;
  20. CDmaString m_GameSoundName; // Only used if it's a gamesound
  21. // Return false if it can't find the sound full path
  22. bool ComputeSoundFullPath( char *pBuf, int nBufLen );
  23. };
  24. class CDmeGameSound : public CDmeSound
  25. {
  26. DEFINE_ELEMENT( CDmeGameSound, CDmeSound );
  27. public:
  28. CDmElement *FindOrAddPhonemeExtractionSettings();
  29. CDmaVar< float > m_Volume;
  30. CDmaVar< int > m_Level;
  31. CDmaVar< int > m_Pitch;
  32. CDmaVar< bool > m_IsStatic;
  33. CDmaVar< int > m_Channel;
  34. CDmaVar< int > m_Flags;
  35. // CDmaElement m_Source;
  36. // CDmaVar< bool > m_FollowSource;
  37. CDmaVar< Vector > m_Origin;
  38. CDmaVar< Vector > m_Direction;
  39. };
  40. #endif // DMESOUND_H