mirror of https://github.com/snes9xgit/snes9x.git
win32: correct audio buffer size values
This commit is contained in:
parent
0772e3828c
commit
28f8ac8341
|
@ -493,8 +493,8 @@
|
|||
#define ID_SOUND_144MS 40162
|
||||
#define ID_SOUND_160MS 40163
|
||||
#define ID_SOUND_176MS 40164
|
||||
#define ID_SOUND_194MS 40165
|
||||
#define ID_SOUND_210MS 40166
|
||||
#define ID_SOUND_192MS 40165
|
||||
#define ID_SOUND_208MS 40166
|
||||
#define ID_EMULATION_PAUSEWHENINACTIVE 40167
|
||||
#define ID_VIDEO_SHOWFRAMERATE 40168
|
||||
#define ID_WINDOW_SIZE_1X 40169
|
||||
|
|
|
@ -1015,8 +1015,8 @@ BEGIN
|
|||
MENUITEM "144ms", ID_SOUND_144MS
|
||||
MENUITEM "160ms", ID_SOUND_160MS
|
||||
MENUITEM "176ms", ID_SOUND_176MS
|
||||
MENUITEM "194ms", ID_SOUND_194MS
|
||||
MENUITEM "210ms", ID_SOUND_210MS
|
||||
MENUITEM "192ms", ID_SOUND_192MS
|
||||
MENUITEM "208ms", ID_SOUND_208MS
|
||||
END
|
||||
POPUP "&Channels"
|
||||
BEGIN
|
||||
|
|
|
@ -1979,12 +1979,12 @@ LRESULT CALLBACK WinProc(
|
|||
GUI.SoundBufferSize = 176;
|
||||
ReInitSound();
|
||||
break;
|
||||
case ID_SOUND_194MS:
|
||||
GUI.SoundBufferSize = 194;
|
||||
case ID_SOUND_192MS:
|
||||
GUI.SoundBufferSize = 192;
|
||||
ReInitSound();
|
||||
break;
|
||||
case ID_SOUND_210MS:
|
||||
GUI.SoundBufferSize = 210;
|
||||
case ID_SOUND_208MS:
|
||||
GUI.SoundBufferSize = 208;
|
||||
ReInitSound();
|
||||
break;
|
||||
|
||||
|
@ -3753,8 +3753,8 @@ static void CheckMenuStates ()
|
|||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_144MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_160MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_176MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_194MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_210MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_192MS, FALSE, &mii);
|
||||
SetMenuItemInfo (GUI.hMenu, ID_SOUND_208MS, FALSE, &mii);
|
||||
|
||||
mii.fState = MFS_CHECKED;
|
||||
if (GUI.AVIOut)
|
||||
|
@ -3790,8 +3790,8 @@ static void CheckMenuStates ()
|
|||
case 144: id = ID_SOUND_144MS; break;
|
||||
case 160: id = ID_SOUND_160MS; break;
|
||||
case 176: id = ID_SOUND_176MS; break;
|
||||
case 194: id = ID_SOUND_194MS; break;
|
||||
case 210: id = ID_SOUND_210MS; break;
|
||||
case 192: id = ID_SOUND_192MS; break;
|
||||
case 208: id = ID_SOUND_208MS; break;
|
||||
}
|
||||
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, 9, (LPARAM)TEXT("160 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, 12, (LPARAM)TEXT("210 ms"));
|
||||
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 11, (LPARAM)TEXT("192 ms"));
|
||||
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_INSERTSTRING, 12, (LPARAM)TEXT("208 ms"));
|
||||
|
||||
SendDlgItemMessage(hDlg, IDC_BUFLEN, CB_SETCURSEL, ((GUI.SoundBufferSize / 16) - 1), 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue