mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-05-28 17:41:37 +00:00
Add a few comments
This commit is contained in:
parent
a1e81c0451
commit
6acaa7a403
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user