ReactOS  0.4.13-dev-52-g0efcfec
main.h File Reference
#include <math.h>
#include <windows.h>
#include <devioctl.h>
#include <commctrl.h>
#include <setupapi.h>
#include <shellapi.h>
#include <cpl.h>
#include <ks.h>
#include <mmreg.h>
#include <ksmedia.h>
#include <mmsystem.h>
#include <dsound.h>
#include "resource.h"
#include "property.h"
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CMIDEV
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define INITGUID
 
#define DIRECTSOUND_VERSION   0x800
 
#define SAMPLE_RATE   44100
 
#define BASS_FREQUENCY   90
 
#define BASS_AMPLITUDE   0.5
 
#define SPEAKER_FREQUENCY   440
 
#define SPEAKER_AMPLITUDE   0.5
 
#define MAX_TOKEN_SIZE   128
 

Typedefs

typedef struct _CMIDEV CMIDEV
 

Functions

static LRESULT CALLBACK TabDlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 

Variables

HINSTANCE hInst
 
HWND hWndMain
 
HWND hWndTab
 
HWND hWndChild [NUM_TABS]
 
LRESULT currentTab
 
CMIDEV cmiTopologyDev
 
CMIDATA cmiData
 
HWAVEOUT hWave
 
WAVEHDR pwh
 
int currentChannelCount
 
HFONT hURLFont
 

Macro Definition Documentation

◆ BASS_AMPLITUDE

#define BASS_AMPLITUDE   0.5

Definition at line 56 of file main.h.

◆ BASS_FREQUENCY

#define BASS_FREQUENCY   90

Definition at line 55 of file main.h.

◆ DIRECTSOUND_VERSION

#define DIRECTSOUND_VERSION   0x800

Definition at line 47 of file main.h.

◆ INITGUID

#define INITGUID

Definition at line 46 of file main.h.

◆ MAX_TOKEN_SIZE

#define MAX_TOKEN_SIZE   128

Definition at line 61 of file main.h.

◆ SAMPLE_RATE

#define SAMPLE_RATE   44100

Definition at line 53 of file main.h.

◆ SPEAKER_AMPLITUDE

#define SPEAKER_AMPLITUDE   0.5

Definition at line 59 of file main.h.

◆ SPEAKER_FREQUENCY

#define SPEAKER_FREQUENCY   440

Definition at line 58 of file main.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 32 of file main.h.

Typedef Documentation

◆ CMIDEV

Function Documentation

◆ TabDlgProc()

static LRESULT CALLBACK TabDlgProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 756 of file main.cpp.

757 {
758  switch(msg) {
759  case WM_COMMAND:
760  switch (LOWORD(wParam)) {
761  case IDB_STARTSTOP:
762  if (stopTestTone()) {
763  SetDlgItemText(hWndChild[0], IDB_STARTSTOP, "&Play test tone");
764  return TRUE;
765  }
766  if (playTestTone()) {
767  SetDlgItemText(hWndChild[0], IDB_STARTSTOP, "&Stop");
768  return TRUE;
769  }
770  break;
771  case IDC_URL1:
772  case IDC_URL2:
774  break;
775  }
776  case WM_CTLCOLORSTATIC:
778  SetTextColor((HDC)wParam, 0xFF0000);
781  }
782  }
783 
784  return 0;
785 }
#define TRUE
Definition: types.h:120
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1748
static HDC
Definition: imagelist.c:92
#define IDC_URL1
Definition: resource.h:90
WPARAM wParam
Definition: combotst.c:138
#define IDB_STARTSTOP
Definition: resource.h:56
int WINAPI SetBkMode(_In_ HDC, _In_ int)
Definition: dc.c:1032
BOOL playTestTone()
Definition: main.cpp:139
#define TRANSPARENT
Definition: wingdi.h:949
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SetDlgItemText
Definition: winuser.h:5715
#define IDC_URL2
Definition: resource.h:91
#define COLOR_BTNFACE
Definition: winuser.h:918
void openURL(int control)
Definition: main.cpp:749
#define WM_COMMAND
Definition: winuser.h:1716
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:884
#define msg(x)
Definition: auth_time.c:54
LONG_PTR LRESULT
Definition: windef.h:209
HWND hWndChild[NUM_TABS]
Definition: main.h:75
HBRUSH WINAPI GetSysColorBrush(_In_ int)
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
BOOL stopTestTone(void)
Definition: main.cpp:103

Referenced by initDialog().

Variable Documentation

◆ cmiData

◆ cmiTopologyDev

CMIDEV cmiTopologyDev

Definition at line 77 of file main.h.

Referenced by applySettings(), cleanUp(), openDevice(), parseArguments(), setDlgItems(), and WinMain().

◆ currentChannelCount

◆ currentTab

LRESULT currentTab

Definition at line 76 of file main.h.

Referenced by changeTab(), and initDialog().

◆ hInst

HINSTANCE hInst

Definition at line 72 of file main.h.

◆ hURLFont

HFONT hURLFont

Definition at line 82 of file main.h.

Referenced by cleanUp(), and initDialog().

◆ hWave

HWAVEOUT hWave

Definition at line 79 of file main.h.

Referenced by playTestTone(), stopTestTone(), widCallback(), WinMain(), and wodCallback().

◆ hWndChild

◆ hWndMain

HWND hWndMain

Definition at line 73 of file main.h.

◆ hWndTab

HWND hWndTab

Definition at line 74 of file main.h.

Referenced by changeTab(), and initDialog().

◆ pwh

WAVEHDR pwh

Definition at line 80 of file main.h.

Referenced by playTestTone(), and stopTestTone().