win32: correct audio buffer size values

This commit is contained in:
OV2 2019-02-12 19:15:53 +01:00
parent 0772e3828c
commit 28f8ac8341
3 changed files with 14 additions and 14 deletions

View File

@ -493,8 +493,8 @@
#define ID_SOUND_144MS 40162 #define ID_SOUND_144MS 40162
#define ID_SOUND_160MS 40163 #define ID_SOUND_160MS 40163
#define ID_SOUND_176MS 40164 #define ID_SOUND_176MS 40164
#define ID_SOUND_194MS 40165 #define ID_SOUND_192MS 40165
#define ID_SOUND_210MS 40166 #define ID_SOUND_208MS 40166
#define ID_EMULATION_PAUSEWHENINACTIVE 40167 #define ID_EMULATION_PAUSEWHENINACTIVE 40167
#define ID_VIDEO_SHOWFRAMERATE 40168 #define ID_VIDEO_SHOWFRAMERATE 40168
#define ID_WINDOW_SIZE_1X 40169 #define ID_WINDOW_SIZE_1X 40169

View File

@ -1015,8 +1015,8 @@ BEGIN
MENUITEM "144ms", ID_SOUND_144MS MENUITEM "144ms", ID_SOUND_144MS
MENUITEM "160ms", ID_SOUND_160MS MENUITEM "160ms", ID_SOUND_160MS
MENUITEM "176ms", ID_SOUND_176MS MENUITEM "176ms", ID_SOUND_176MS
MENUITEM "194ms", ID_SOUND_194MS MENUITEM "192ms", ID_SOUND_192MS
MENUITEM "210ms", ID_SOUND_210MS MENUITEM "208ms", ID_SOUND_208MS
END END
POPUP "&Channels" POPUP "&Channels"
BEGIN BEGIN

View File

@ -1979,12 +1979,12 @@ LRESULT CALLBACK WinProc(
GUI.SoundBufferSize = 176; GUI.SoundBufferSize = 176;
ReInitSound(); ReInitSound();
break; break;
case ID_SOUND_194MS: case ID_SOUND_192MS:
GUI.SoundBufferSize = 194; GUI.SoundBufferSize = 192;
ReInitSound(); ReInitSound();
break; break;
case ID_SOUND_210MS: case ID_SOUND_208MS:
GUI.SoundBufferSize = 210; GUI.SoundBufferSize = 208;
ReInitSound(); ReInitSound();
break; break;
@ -3753,8 +3753,8 @@ static void CheckMenuStates ()
SetMenuItemInfo (GUI.hMenu, ID_SOUND_144MS, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_SOUND_144MS, FALSE, &mii);
SetMenuItemInfo (GUI.hMenu, ID_SOUND_160MS, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_SOUND_160MS, FALSE, &mii);
SetMenuItemInfo (GUI.hMenu, ID_SOUND_176MS, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_SOUND_176MS, FALSE, &mii);
SetMenuItemInfo (GUI.hMenu, ID_SOUND_194MS, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_SOUND_192MS, FALSE, &mii);
SetMenuItemInfo (GUI.hMenu, ID_SOUND_210MS, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_SOUND_208MS, FALSE, &mii);
mii.fState = MFS_CHECKED; mii.fState = MFS_CHECKED;
if (GUI.AVIOut) if (GUI.AVIOut)
@ -3790,8 +3790,8 @@ static void CheckMenuStates ()
case 144: id = ID_SOUND_144MS; break; case 144: id = ID_SOUND_144MS; break;
case 160: id = ID_SOUND_160MS; break; case 160: id = ID_SOUND_160MS; break;
case 176: id = ID_SOUND_176MS; break; case 176: id = ID_SOUND_176MS; break;
case 194: id = ID_SOUND_194MS; break; case 192: id = ID_SOUND_192MS; break;
case 210: id = ID_SOUND_210MS; break; case 208: id = ID_SOUND_208MS; break;
} }
SetMenuItemInfo (GUI.hMenu, id, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, id, FALSE, &mii);
@ -4420,8 +4420,8 @@ INT_PTR CALLBACK DlgSoundConf(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 8, (LPARAM)TEXT("144 ms")); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 8, (LPARAM)TEXT("144 ms"));
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 9, (LPARAM)TEXT("160 ms")); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 9, (LPARAM)TEXT("160 ms"));
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 10, (LPARAM)TEXT("176 ms")); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 10, (LPARAM)TEXT("176 ms"));
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 11, (LPARAM)TEXT("194 ms")); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 11, (LPARAM)TEXT("192 ms"));
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 12, (LPARAM)TEXT("210 ms")); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 12, (LPARAM)TEXT("208 ms"));
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_SETCURSEL, ((GUI.SoundBufferSize / 16) - 1), 0); SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_SETCURSEL, ((GUI.SoundBufferSize / 16) - 1), 0);