SoundAY implementation based on randomizer' specs - fixes
This commit is contained in:
parent
a2f9a846f2
commit
f4093e0ba9
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ Product
|
||||
Release
|
||||
*.ncb
|
||||
*.VC.db
|
||||
*.VC.opendb
|
||||
*.suo
|
||||
*.user
|
||||
*.suppress
|
||||
|
@ -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())
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user