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.

40 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IVOICETWEAK_H
  8. #define IVOICETWEAK_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // These provide access to the voice controls.
  13. typedef enum
  14. {
  15. MicrophoneVolume=0, // values 0-1.
  16. OtherSpeakerScale, // values 0-1. Scales how loud other players are.
  17. MicBoost,
  18. SpeakingVolume, // values 0-1. Current voice volume received through Voice Tweak mode
  19. } VoiceTweakControl;
  20. typedef struct IVoiceTweak_s
  21. {
  22. // These turn voice tweak mode on and off. While in voice tweak mode, the user's voice is echoed back
  23. // without sending to the server.
  24. int (*StartVoiceTweakMode)(); // Returns 0 on error.
  25. void (*EndVoiceTweakMode)();
  26. // Get/set control values.
  27. void (*SetControlFloat)(VoiceTweakControl iControl, float value);
  28. float (*GetControlFloat)(VoiceTweakControl iControl);
  29. bool (*IsStillTweaking)(); // This can return false if the user restarts the sound system during voice tweak mode
  30. } IVoiceTweak;
  31. #endif // IVOICETWEAK_H