ReactOS
0.4.16-dev-197-g92996da
main.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2006-2008 dogbert <dogber1@gmail.com>
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions
7
are met:
8
1. Redistributions of source code must retain the above copyright
9
notice, this list of conditions and the following disclaimer.
10
2. Redistributions in binary form must reproduce the above copyright
11
notice, this list of conditions and the following disclaimer in the
12
documentation and/or other materials provided with the distribution.
13
3. The name of the author may not be used to endorse or promote products
14
derived from this software without specific prior written permission.
15
16
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*/
27
#ifndef _MAIN_H_
28
#define _MAIN_H_
29
30
#include <math.h>
31
32
#define WIN32_LEAN_AND_MEAN
33
#include <windows.h>
34
#include <devioctl.h>
35
#include <commctrl.h>
36
#include <
setupapi.h
>
37
#include <
shellapi.h
>
38
#include <
cpl.h
>
39
40
#include <
ks.h
>
41
#include <
mmreg.h
>
42
#include <
ksmedia.h
>
43
#include <
mmsystem.h
>
44
45
46
#define INITGUID
47
#define DIRECTSOUND_VERSION 0x800
48
#include <
dsound.h
>
49
50
#include "
resource.h
"
51
#include "
property.h
"
52
53
#define SAMPLE_RATE 44100
54
55
#define BASS_FREQUENCY 90
56
#define BASS_AMPLITUDE 0.5
57
58
#define SPEAKER_FREQUENCY 440
59
#define SPEAKER_AMPLITUDE 0.5
60
61
#define MAX_TOKEN_SIZE 128
62
63
typedef
struct
_CMIDEV
{
64
HDEVINFO
Info
;
65
SP_DEVINFO_DATA
InfoData
;
66
PSP_DEVICE_INTERFACE_DETAIL_DATA
InterfaceDetailData
;
67
}
CMIDEV
;
68
69
static
INT_PTR
CALLBACK
TabDlgProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
70
71
HINSTANCE
hInst
;
72
HWND
hWndMain
;
73
HWND
hWndTab
;
74
HWND
hWndChild
[
NUM_TABS
];
75
LRESULT
currentTab
;
76
CMIDEV
cmiTopologyDev
;
77
CMIDATA
cmiData
;
78
HWAVEOUT
hWave
;
79
WAVEHDR
pwh
;
80
int
currentChannelCount
;
81
HFONT
hURLFont
;
82
83
#endif
//_MAIN_H_
msg
#define msg(x)
Definition:
auth_time.c:54
hWnd
HWND hWnd
Definition:
settings.c:17
hInst
HINSTANCE hInst
Definition:
dxdiag.c:13
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
cpl.h
CALLBACK
#define CALLBACK
Definition:
compat.h:35
hWndMain
HWND hWndMain
Definition:
main.h:72
currentTab
LRESULT currentTab
Definition:
main.h:75
cmiData
CMIDATA cmiData
Definition:
main.h:77
currentChannelCount
int currentChannelCount
Definition:
main.h:80
cmiTopologyDev
CMIDEV cmiTopologyDev
Definition:
main.h:76
hURLFont
HFONT hURLFont
Definition:
main.h:81
hWave
HWAVEOUT hWave
Definition:
main.h:78
CMIDEV
struct _CMIDEV CMIDEV
hWndTab
HWND hWndTab
Definition:
main.h:73
TabDlgProc
static INT_PTR CALLBACK TabDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition:
main.cpp:751
hWndChild
HWND hWndChild[NUM_TABS]
Definition:
main.h:74
pwh
WAVEHDR pwh
Definition:
main.h:79
NUM_TABS
#define NUM_TABS
Definition:
resource.h:95
dsound.h
void
Definition:
nsiface.idl:2307
ks.h
ksmedia.h
mmreg.h
mmsystem.h
HFONT
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
UINT
unsigned int UINT
Definition:
ndis.h:50
property.h
setupapi.h
shellapi.h
CMIDATA
Definition:
property.h:63
_CMIDEV
Definition:
main.h:63
_CMIDEV::InfoData
SP_DEVINFO_DATA InfoData
Definition:
main.h:65
_CMIDEV::InterfaceDetailData
PSP_DEVICE_INTERFACE_DETAIL_DATA InterfaceDetailData
Definition:
main.h:66
_CMIDEV::Info
HDEVINFO Info
Definition:
main.h:64
_SP_DEVICE_INTERFACE_DETAIL_DATA_A
Definition:
setupapi.h:849
_SP_DEVINFO_DATA
Definition:
setupapi.h:834
wavehdr_tag
Definition:
mmsystem.h:1013
INT_PTR
int32_t INT_PTR
Definition:
typedefs.h:64
resource.h
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
drivers
wdm
audio
drivers
CMIDriver
cmicontrol
main.h
Generated on Wed Oct 30 2024 06:06:19 for ReactOS by
1.9.6