1
0
mirror of synced 2025-04-18 23:24:01 +03:00

SoundAY implementation based on randomizer' specs - fixes

This commit is contained in:
nzeemin 2022-10-25 20:20:09 +03:00
parent a2f9a846f2
commit f4093e0ba9
4 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ Product
Release
*.ncb
*.VC.db
*.VC.opendb
*.suo
*.user
*.suppress

View File

@ -196,6 +196,7 @@ BOOL InitInstance(HINSTANCE /*hInstance*/, int /*nCmdShow*/)
if (!Emulator_Init())
return FALSE;
Emulator_SetSound(Settings_GetSound() != 0);
Emulator_SetSoundAY(Settings_GetSoundAY() != 0);
Emulator_SetSpeed(Settings_GetRealSpeed());
if (!CreateMainWindow())

View File

@ -1301,7 +1301,7 @@ void MainWindow_DoEmulatorSoundAY()
{
Settings_SetSoundAY(!Settings_GetSoundAY());
Emulator_SetSoundAY(Settings_GetSoundAY());
Emulator_SetSoundAY(Settings_GetSoundAY() != 0);
MainWindow_UpdateMenu();
}
@ -1686,7 +1686,7 @@ void MainWindow_OnStatusbarDrawItem(LPDRAWITEMSTRUCT lpDrawItem)
int left = lpDrawItem->rcItem.right - 16 - 2; // lpDrawItem->rcItem.left + (lpDrawItem->rcItem.right - lpDrawItem->rcItem.left - 16) / 2;
int top = lpDrawItem->rcItem.top + (lpDrawItem->rcItem.bottom - lpDrawItem->rcItem.top - 16) / 2;
::DrawIconEx(hdc, left, top, hicon, 16, 16, 0, NULL, DI_NORMAL);
VERIFY(::DeleteObject(hicon));
VERIFY(::DestroyIcon(hicon));
}
}

View File

@ -1055,6 +1055,11 @@ uint16_t CSecondMemoryController::GetPortWord(uint16_t address)
case 0177103: // i8255 control
return 0;
case 0177360: // Sound AY
case 0177362:
case 0177364:
return 0; //m_pBoard->GetSoundAYVal((address >> 1) & 3);
case 0177700:
case 0177701:
return m_Port177700; // Keyboard status