Patch - add a button for audio test in winecfg
Steven Edwards
winehacker at gmail.com
Tue Apr 3 15:09:02 CDT 2007
This is part one of my implementation of a simple test to test the
audio support in winecfg. If part two is rejected you could go ahead
and commit this and maybe someone else will be motivated to fix it the
way you want. My other patch will come later tonight as I am putting
the last touches on it.
P.S. I don't know if it will cleanly apply as did not have my
information set correctly in git before I committed this to my tree. I
have since run git repo-config. I manually edited the header before
the unidiff to have my correct email in this patch so if I need to
extract it and re-apply to my tree please point me to how to do that.
--
Steven Edwards
"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo
-------------- next part --------------
Subject: [PATCH] Added button for audio test
From: Steven Edwards <winehacker at gmail.com>
Date: 1175392808 -0400
This is done as a seperate commit
in case the next patch for the actual test is rejected.
---
programs/winecfg/En.rc | 3 ++-
programs/winecfg/audio.c | 3 +++
programs/winecfg/resource.h | 21 +++++++++++----------
3 files changed, 16 insertions(+), 11 deletions(-)
5eb511c88b4bcd15fb75abf1ef58b7150a371a28
diff --git a/programs/winecfg/En.rc b/programs/winecfg/En.rc
index c59d517..4ba0899 100644
--- a/programs/winecfg/En.rc
+++ b/programs/winecfg/En.rc
@@ -162,7 +162,8 @@ BEGIN
GROUPBOX " Driver Selection ",IDC_STATIC,8,4,244,195
LTEXT "Select a sound driver by checking the box of the desired driver. Disable sound by not selecting any driver. Selection of multiple drivers is not recommended. Configure a driver by right-clicking on it.",IDC_STATIC,15,20,227,30
CONTROL "Devices",IDC_AUDIO_TREE,"SysTreeView32",WS_BORDER | WS_TABSTOP,15,50,140,140
- PUSHBUTTON "Control Panel",IDC_AUDIO_CONTROL_PANEL,170,50,59,14
+ PUSHBUTTON "Test Sound",IDC_AUDIO_TEST,170,50,59,14
+ PUSHBUTTON "Control Panel",IDC_AUDIO_CONTROL_PANEL,170,70,59,14
GROUPBOX " DirectSound ",IDC_STATIC,8,205,244,60
LTEXT "Hardware Acceleration: ",IDC_STATIC,15,215,90,10
COMBOBOX IDC_DSOUND_HW_ACCEL,100,213,150,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c
index 2fc8c39..ddd8a87 100644
--- a/programs/winecfg/audio.c
+++ b/programs/winecfg/audio.c
@@ -731,6 +731,9 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPAR
case IDC_AUDIO_CONFIGURE:
configureAudioDriver(hDlg);
break;
+ case IDC_AUDIO_TEST:
+ MessageBox(NULL, "Audiot Test not implemented yet!", "Fixme", MB_OK | MB_ICONERROR);
+ break;
case IDC_AUDIO_CONTROL_PANEL:
MessageBox(NULL, "Launching audio control panel not implemented yet!", "Fixme", MB_OK | MB_ICONERROR);
break;
diff --git a/programs/winecfg/resource.h b/programs/winecfg/resource.h
index 6bab26f..c867caa 100644
--- a/programs/winecfg/resource.h
+++ b/programs/winecfg/resource.h
@@ -159,16 +159,17 @@
/* audio tab */
#define IDC_AUDIO_CONFIGURE 1300
-#define IDC_AUDIO_CONTROL_PANEL 1301
-#define IDC_DSOUND_HW_ACCEL 1302
-#define IDC_DSOUND_DRV_EMUL 1303
-#define IDC_AUDIO_TREE 1304
-#define IDR_WINECFG 1305
-#define IDB_CHECKBOX 1306
-#define IDB_DEVICE 1307
-#define IDS_AUDIO_MISSING 1308
-#define IDC_DSOUND_RATES 1309
-#define IDC_DSOUND_BITS 1310
+#define IDC_AUDIO_TEST 1301
+#define IDC_AUDIO_CONTROL_PANEL 1302
+#define IDC_DSOUND_HW_ACCEL 1303
+#define IDC_DSOUND_DRV_EMUL 1304
+#define IDC_AUDIO_TREE 1305
+#define IDR_WINECFG 1306
+#define IDB_CHECKBOX 1307
+#define IDB_DEVICE 1308
+#define IDS_AUDIO_MISSING 1309
+#define IDC_DSOUND_RATES 1310
+#define IDC_DSOUND_BITS 1311
#define IDS_ACCEL_FULL 8300
#define IDS_ACCEL_STANDARD 8301
#define IDS_ACCEL_BASIC 8302
--
1.1.3
More information about the wine-patches
mailing list