Steven Edwards : winecfg: Add a button for audio test.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Apr 4 12:32:26 CDT 2007
Module: wine
Branch: master
Commit: 8c62cbfa4eef304a49171f56db98fa8b1925086c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c62cbfa4eef304a49171f56db98fa8b1925086c
Author: Steven Edwards <winehacker at gmail.com>
Date: Tue Apr 3 16:09:02 2007 -0400
winecfg: Add a button for audio test.
---
programs/winecfg/En.rc | 3 ++-
programs/winecfg/audio.c | 3 +++
programs/winecfg/resource.h | 21 +++++++++++----------
3 files changed, 16 insertions(+), 11 deletions(-)
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..75d1629 100644
--- a/programs/winecfg/audio.c
+++ b/programs/winecfg/audio.c
@@ -731,6 +731,9 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case IDC_AUDIO_CONFIGURE:
configureAudioDriver(hDlg);
break;
+ case IDC_AUDIO_TEST:
+ MessageBox(NULL, "Audio 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
More information about the wine-cvs
mailing list