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
40 lines
1.1 KiB
//========= 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
|
|
|