Counter Strike : Global Offensive Source Code
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.

42 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, 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. bool (*IsControlFound)(VoiceTweakControl iControl);
  31. } IVoiceTweak;
  32. #endif // IVOICETWEAK_H