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.

45 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMEBALANCETOSTEREOCALCULATOROPERATOR_H
  7. #define DMEBALANCETOSTEREOCALCULATOROPERATOR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "movieobjects/dmeoperator.h"
  12. class CDmeBalanceToStereoCalculatorOperator : public CDmeOperator
  13. {
  14. DEFINE_ELEMENT( CDmeBalanceToStereoCalculatorOperator, CDmeOperator );
  15. public:
  16. virtual void Operate();
  17. virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
  18. virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
  19. void SetSpewResult( bool state );
  20. protected:
  21. float ComputeDefaultValue();
  22. CDmaVar< float > m_result_left;
  23. CDmaVar< float > m_result_right;
  24. CDmaVar< float > m_result_multi;
  25. CDmaVar< float > m_value; // input value
  26. CDmaVar< float > m_balance; // balance value
  27. CDmaVar< float > m_multilevel; // multilevel value
  28. // Debuggin
  29. CDmaVar< bool > m_bSpewResult;
  30. float m_flDefaultValue;
  31. };
  32. #endif // DMEBALANCETOSTEREOCALCULATOROPERATOR_H