-
Notifications
You must be signed in to change notification settings - Fork 1
/
PitchShifterDlg.h
58 lines (50 loc) · 1.38 KB
/
PitchShifterDlg.h
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
// PitchShifterDlg.h : header file
//
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
// CPitchShifterDlg dialog
class CWaveIn;
class CWaveOut;
class CPitchShifterDlg : public CDialog
{
// Construction
public:
CPitchShifterDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_PitchShifter_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
private:
bool delay_changed;
bool started;
CWaveIn* pWaveIn;
CWaveOut* pWaveOut;
int OpenInputDevice(void);
int OpenOutputDevice(void);
afx_msg void OnBnClickedOpenDevices();
int FillInputDevices(void);
int FillOutputDevices(void);
afx_msg void OnCbnSelchangeOutputDevices();
afx_msg void OnCbnSelchangeInputDevices();
afx_msg void OnBnClickedCloseDevices();
afx_msg void OnDestroy();
bool CheckInputOutputFormat(void);
CSliderCtrl m_delaySlider;
CEdit m_delay_ms;
void UpdateDelay(void);
afx_msg void OnNMCustomdrawDelaySlider(NMHDR *pNMHDR, LRESULT *pResult);
CSliderCtrl m_pitchFactor;
afx_msg void OnNMCustomdrawPitchFactor(NMHDR *pNMHDR, LRESULT *pResult);
CStatic m_pitchParam;
bool CheckIfMono(void);
};