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.

47 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MIXER_CONTROLS_H
  8. #define MIXER_CONTROLS_H
  9. #pragma once
  10. abstract_class IMixerControls
  11. {
  12. public:
  13. virtual ~IMixerControls() {}
  14. enum Control
  15. {
  16. // Microphone boost is a boolean switch that sound cards support which boosts the input signal by about +20dB.
  17. // If this isn't on, the mic is usually way too quiet.
  18. MicBoost=0,
  19. // Volume values are 0-1.
  20. MicVolume,
  21. // Mic playback muting. You usually want this set to false, otherwise the sound card echoes whatever you say into the mic.
  22. MicMute,
  23. NumControls
  24. };
  25. virtual bool GetValue_Float(Control iControl, float &value) = 0;
  26. virtual bool SetValue_Float(Control iControl, float value) = 0;
  27. // Apps like RealJukebox will switch the waveIn input to use CD audio
  28. // rather than the microphone. This should be called at startup to set it back.
  29. virtual bool SelectMicrophoneForWaveInput() = 0;
  30. };
  31. extern IMixerControls *g_pMixerControls;
  32. // Allocates a set of mixer controls.
  33. void InitMixerControls();
  34. void ShutdownMixerControls();
  35. #endif // MIXER_CONTROLS_H