summaryrefslogtreecommitdiff
path: root/utils/voice_tweak/voice_tweak.h
blob: bd1767a4edc9f802ded4e6ba29c84fe509cd756d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// voice_tweak.h : main header file for the VOICE_TWEAK application
//

#if !defined(AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_)
#define AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols
#include "voice_mixer_controls.h"
#include "ivoicerecord.h"
#include "iwaveout.h"
#include "ivoicecodec.h"
#include "interface.h"
#include "voice_gain.h"


#define VOICE_TWEAK_SAMPLE_RATE	22050


// Pass in the english string ID, and this returns the string ID in the current language.
int MapLanguageStringID( int idEnglish );



/////////////////////////////////////////////////////////////////////////////
// CVoiceTweakApp:
// See voice_tweak.cpp for the implementation of this class
//

class CVoiceTweakApp : public CWinApp
{
public:
	CVoiceTweakApp();
	~CVoiceTweakApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVoiceTweakApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

	// Init and deinit the record, waveOut, and voice codec.
	bool				StartDevices();
	void				StopDevices();

	IVoiceRecord		*m_pVoiceRecord;
	IWaveOut			*m_pWaveOut;

	IMixerControls		*m_pMixerControls;


// Implementation

	//{{AFX_MSG(CVoiceTweakApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VOICE_TWEAK_H__7343765B_B2E9_4E37_AA34_242E0B635AF1__INCLUDED_)