Team Fortress 2 Source Code as on 22/4/2020
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.

82 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // voice_tweak.h : main header file for the VOICE_TWEAK application
  9. //
  10. #if !defined(AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_)
  11. #define AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif // _MSC_VER > 1000
  15. #ifndef __AFXWIN_H__
  16. #error include 'stdafx.h' before including this file for PCH
  17. #endif
  18. #include "resource.h" // main symbols
  19. #include "voice_mixer_controls.h"
  20. #include "ivoicerecord.h"
  21. #include "iwaveout.h"
  22. #include "ivoicecodec.h"
  23. #include "interface.h"
  24. #include "voice_gain.h"
  25. #define VOICE_TWEAK_SAMPLE_RATE 22050
  26. // Pass in the english string ID, and this returns the string ID in the current language.
  27. int MapLanguageStringID( int idEnglish );
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CVoiceTweakApp:
  30. // See voice_tweak.cpp for the implementation of this class
  31. //
  32. class CVoiceTweakApp : public CWinApp
  33. {
  34. public:
  35. CVoiceTweakApp();
  36. ~CVoiceTweakApp();
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CVoiceTweakApp)
  40. public:
  41. virtual BOOL InitInstance();
  42. //}}AFX_VIRTUAL
  43. // Init and deinit the record, waveOut, and voice codec.
  44. bool StartDevices();
  45. void StopDevices();
  46. IVoiceRecord *m_pVoiceRecord;
  47. IWaveOut *m_pWaveOut;
  48. IMixerControls *m_pMixerControls;
  49. // Implementation
  50. //{{AFX_MSG(CVoiceTweakApp)
  51. // NOTE - the ClassWizard will add and remove member functions here.
  52. // DO NOT EDIT what you see in these blocks of generated code !
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_)