ReactOS 0.4.16-dev-306-g647d351
main.h
Go to the documentation of this file.
1/*
2Copyright (c) 2006-2008 dogbert <dogber1@gmail.com>
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions
7are met:
81. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
102. 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.
133. 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
16THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25THIS 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
63typedef struct _CMIDEV {
68
70
78HWAVEOUT hWave;
82
83#endif //_MAIN_H_
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
HINSTANCE hInst
Definition: dxdiag.c:13
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CALLBACK
Definition: compat.h:35
HWND hWndMain
Definition: main.h:72
LRESULT currentTab
Definition: main.h:75
CMIDATA cmiData
Definition: main.h:77
int currentChannelCount
Definition: main.h:80
CMIDEV cmiTopologyDev
Definition: main.h:76
HFONT hURLFont
Definition: main.h:81
HWAVEOUT hWave
Definition: main.h:78
struct _CMIDEV CMIDEV
HWND hWndTab
Definition: main.h:73
static INT_PTR CALLBACK TabDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: main.cpp:751
HWND hWndChild[NUM_TABS]
Definition: main.h:74
WAVEHDR pwh
Definition: main.h:79
#define NUM_TABS
Definition: resource.h:95
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int UINT
Definition: ndis.h:50
Definition: main.h:63
SP_DEVINFO_DATA InfoData
Definition: main.h:65
PSP_DEVICE_INTERFACE_DETAIL_DATA InterfaceDetailData
Definition: main.h:66
HDEVINFO Info
Definition: main.h:64
int32_t INT_PTR
Definition: typedefs.h:64
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207