Add a few comments

This commit is contained in:
tomcw 2023-01-22 10:00:08 +00:00
parent a1e81c0451
commit 6acaa7a403
3 changed files with 6 additions and 1 deletions

View File

@ -109,6 +109,8 @@ void Disk2CardManager::LoadLastDiskImage(void)
// Called by CardManager::Destroy()
void Disk2CardManager::Destroy(void)
{
// NB. All cards (including any Disk2 cards) have just been destroyed by CardManager
// - so nothing to do
}
bool Disk2CardManager::IsAnyFirmware13Sector(void)

View File

@ -403,7 +403,6 @@ UINT MockingboardCard::MB_Update(void)
const double nIrqFreq = g_fCurrentCLK6502 / updateInterval + 0.5; // Round-up
const int nNumSamplesPerPeriod = (int)((double)SAMPLE_RATE / nIrqFreq); // Eg. For 60Hz this is 735
//static int nNumSamplesError = 0; // INFO-TC: moved to class
int nNumSamples = nNumSamplesPerPeriod + m_numSamplesError; // Apply correction
if (nNumSamples <= 0)
nNumSamples = 0;

View File

@ -166,6 +166,8 @@ void MockingboardCardManager::Get6522IrqDescription(std::string& desc)
// Called by CardManager::Destroy()
void MockingboardCardManager::Destroy(void)
{
// NB. All cards (including any Mockingboard cards) have just been destroyed by CardManager
if (MockingboardVoice.lpDSBvoice && MockingboardVoice.bActive)
DSVoiceStop(&MockingboardVoice);
@ -176,6 +178,8 @@ void MockingboardCardManager::Destroy(void)
// NB. Required for FT's TEST LAB #1 player
void MockingboardCardManager::Update(const ULONG executedCycles)
{
// NB. CardManager has just called each card's Update()
bool active = false;
for (UINT i = SLOT0; i < NUM_SLOTS; i++)
{