ReactOS
0.4.15-dev-5606-gf34e425
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
68
}
CMIDEV
;
69
70
static
LRESULT
CALLBACK
TabDlgProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
71
72
HINSTANCE
hInst
;
73
HWND
hWndMain
;
74
HWND
hWndTab
;
75
HWND
hWndChild
[
NUM_TABS
];
76
LRESULT
currentTab
;
77
CMIDEV
cmiTopologyDev
;
78
CMIDATA
cmiData
;
79
HWAVEOUT
hWave
;
80
WAVEHDR
pwh
;
81
int
currentChannelCount
;
82
HFONT
hURLFont
;
83
84
#endif //_MAIN_H_
_CMIDEV::InterfaceDetailData
PSP_DEVICE_INTERFACE_DETAIL_DATA InterfaceDetailData
Definition:
main.h:66
ksmedia.h
CALLBACK
#define CALLBACK
Definition:
compat.h:35
ks.h
CMIDEV
struct _CMIDEV CMIDEV
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
setupapi.h
wParam
WPARAM wParam
Definition:
combotst.c:138
property.h
mmreg.h
_SP_DEVINFO_DATA
Definition:
setupapi.h:834
cmiTopologyDev
CMIDEV cmiTopologyDev
Definition:
main.h:77
cmiData
CMIDATA cmiData
Definition:
main.h:78
wavehdr_tag
Definition:
mmsystem.h:1013
TabDlgProc
static LRESULT CALLBACK TabDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition:
main.cpp:756
hURLFont
HFONT hURLFont
Definition:
main.h:82
hWave
HWAVEOUT hWave
Definition:
main.h:79
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
hInst
HINSTANCE hInst
Definition:
dxdiag.c:13
shellapi.h
mmsystem.h
_SP_DEVICE_INTERFACE_DETAIL_DATA_A
Definition:
setupapi.h:849
hWnd
HWND hWnd
Definition:
main.h:78
resource.h
currentTab
LRESULT currentTab
Definition:
main.h:76
pwh
WAVEHDR pwh
Definition:
main.h:80
_CMIDEV::InfoData
SP_DEVINFO_DATA InfoData
Definition:
main.h:65
_CMIDEV
Definition:
main.h:63
UINT
unsigned int UINT
Definition:
ndis.h:50
cpl.h
HFONT
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
msg
#define msg(x)
Definition:
auth_time.c:54
_CMIDEV::Info
HDEVINFO Info
Definition:
main.h:64
hWndTab
HWND hWndTab
Definition:
main.h:74
void
Definition:
nsiface.idl:2306
CMIDATA
Definition:
property.h:62
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
hWndChild
HWND hWndChild[NUM_TABS]
Definition:
main.h:75
hWndMain
HWND hWndMain
Definition:
main.h:73
dsound.h
NUM_TABS
#define NUM_TABS
Definition:
resource.h:95
lParam
LPARAM lParam
Definition:
combotst.c:139
currentChannelCount
int currentChannelCount
Definition:
main.h:81
drivers
wdm
audio
drivers
CMIDriver
cmicontrol
main.h
Generated on Fri Jan 27 2023 06:02:18 for ReactOS by
1.8.15