2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2024-12-31 00:55:47 +03:00
metamod-r/metamod/include/common/ivoicetweak.h

39 lines
1004 B
C
Raw Normal View History

2016-07-04 09:07:29 +03:00
//========= Copyright <20> 1996-2002, Valve LLC, 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.
2016-07-04 10:11:20 +03:00
OtherSpeakerScale, // values 0-1. Scales how loud other players are.
MicBoost, // 20 db gain to voice input
2016-07-04 09:07:29 +03:00
} 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)();
2016-07-26 03:22:47 +03:00
2016-07-04 09:07:29 +03:00
// Get/set control values.
void (*SetControlFloat)(VoiceTweakControl iControl, float value);
float (*GetControlFloat)(VoiceTweakControl iControl);
2016-07-04 10:11:20 +03:00
2016-07-26 03:22:47 +03:00
int (*GetSpeakingVolume)();
2016-07-04 09:07:29 +03:00
} IVoiceTweak;
#endif // IVOICETWEAK_H