|
|
| version 1.1, 2003/10/31 16:55:06 | version 1.2, 2004/03/15 05:06:02 |
|---|---|
| Line 17 | Line 17 |
| #include "dialogutils.h" | #include "dialogutils.h" |
| #include "hid.h" | #include "hid.h" |
| #include "soundopt.h" | #include "soundopt.h" |
| #include "dipswbmp.h" | |
| #define getControlValue(a,b) GetControl32BitValue(getControlRefByID(a,b,soundWin)) | #define getControlValue(a,b) GetControl32BitValue(getControlRefByID(a,b,soundWin)) |
| #define setControlValue(a,b,c) SetControl32BitValue(getControlRefByID(a,b,soundWin),c) | #define setControlValue(a,b,c) SetControl32BitValue(getControlRefByID(a,b,soundWin),c) |
| Line 83 static void setSPB(void) { | Line 84 static void setSPB(void) { |
| } | } |
| static void initSoundWindow(void) { | static void initSoundWindow(void) { |
| BYTE data[5]; | PicHandle pict; |
| short i; | ControlRef disp; |
| BYTE data[5]; | |
| short i; | |
| for (i=0;i<5;i++) { | for (i=0;i<5;i++) { |
| data[i] = *(cfg[i]); | data[i] = *(cfg[i]); |
| } | } |
| Line 96 static void initSoundWindow(void) { | Line 99 static void initSoundWindow(void) { |
| uncheckAllPopupMenuItems('26in', 4, soundWin); | uncheckAllPopupMenuItems('26in', 4, soundWin); |
| uncheckAllPopupMenuItems('26rm', 5, soundWin); | uncheckAllPopupMenuItems('26rm', 5, soundWin); |
| set26s(snd26, '26io', '26in', '26rm'); | set26s(snd26, '26io', '26in', '26rm'); |
| disp = getControlRefByID('BMP ', 0, soundWin); | |
| setbmp(dipswbmp_getsnd26(snd26), &pict); | |
| SetControlData(disp, kControlNoPart, kControlPictureHandleTag, sizeof(PicHandle), &pict); | |
| snd86 = np2cfg.snd86opt; | snd86 = np2cfg.snd86opt; |
| uncheckAllPopupMenuItems('86io', 2, soundWin); | uncheckAllPopupMenuItems('86io', 2, soundWin); |
| uncheckAllPopupMenuItems('86in', 4, soundWin); | uncheckAllPopupMenuItems('86in', 4, soundWin); |
| uncheckAllPopupMenuItems('86id', 8, soundWin); | uncheckAllPopupMenuItems('86id', 8, soundWin); |
| set86s(); | set86s(); |
| disp = getControlRefByID('BMP ', 1, soundWin); | |
| setbmp(dipswbmp_getsnd86(snd86), &pict); | |
| SetControlData(disp, kControlNoPart, kControlPictureHandleTag, sizeof(PicHandle), &pict); | |
| spb = np2cfg.spbopt; | spb = np2cfg.spbopt; |
| spbvrc = np2cfg.spb_vrc; // ver0.30 | spbvrc = np2cfg.spb_vrc; // ver0.30 |
| uncheckAllPopupMenuItems('spio', 2, soundWin); | uncheckAllPopupMenuItems('spio', 2, soundWin); |
| Line 111 static void initSoundWindow(void) { | Line 120 static void initSoundWindow(void) { |
| setSPB(); | setSPB(); |
| setControlValue('splv', 0, np2cfg.spb_vrl); | setControlValue('splv', 0, np2cfg.spb_vrl); |
| setControlValue('sprv', 0, np2cfg.spb_x); | setControlValue('sprv', 0, np2cfg.spb_x); |
| disp = getControlRefByID('BMP ', 2, soundWin); | |
| setbmp(dipswbmp_getsndspb(spb, spbvrc), &pict); | |
| SetControlData(disp, kControlNoPart, kControlPictureHandleTag, sizeof(PicHandle), &pict); | |
| initJoyPad(); | initJoyPad(); |
| } | } |