diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/ivoicetweak.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/ivoicetweak.h')
| -rw-r--r-- | sp/src/public/ivoicetweak.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sp/src/public/ivoicetweak.h b/sp/src/public/ivoicetweak.h new file mode 100644 index 00000000..6c0349b9 --- /dev/null +++ b/sp/src/public/ivoicetweak.h @@ -0,0 +1,40 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef IVOICETWEAK_H
+#define IVOICETWEAK_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+// These provide access to the voice controls.
+typedef enum
+{
+ MicrophoneVolume=0, // values 0-1.
+ OtherSpeakerScale, // values 0-1. Scales how loud other players are.
+ MicBoost,
+ SpeakingVolume, // values 0-1. Current voice volume received through Voice Tweak mode
+
+} VoiceTweakControl;
+
+
+typedef struct IVoiceTweak_s
+{
+ // These turn voice tweak mode on and off. While in voice tweak mode, the user's voice is echoed back
+ // without sending to the server.
+ int (*StartVoiceTweakMode)(); // Returns 0 on error.
+ void (*EndVoiceTweakMode)();
+
+ // Get/set control values.
+ void (*SetControlFloat)(VoiceTweakControl iControl, float value);
+ float (*GetControlFloat)(VoiceTweakControl iControl);
+
+ bool (*IsStillTweaking)(); // This can return false if the user restarts the sound system during voice tweak mode
+} IVoiceTweak;
+
+
+#endif // IVOICETWEAK_H
|