VirtualBox

Changeset 64570 in vbox


Ignore:
Timestamp:
Nov 4, 2016 12:40:11 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111758
Message:

Comments, renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r64393 r64570  
    14621462static void ichac97TimerMaybeStart(PAC97STATE pThis)
    14631463{
    1464     if (pThis->cStreamsActive == 0) /* Only start the timer if there are no active streams. */
     1464    if (pThis->cStreamsActive == 0) /* Only start the timer if there at least is one active streams. */
    14651465        return;
    14661466
     
    15181518
    15191519        /* Flag indicating whether to kick the timer again for the next DMA transfer or sink processing. */
    1520         bool fDoNextTransfer = false;
     1520        bool fKickTimer = false;
    15211521
    15221522        uint32_t cbToProcess;
     
    15301530
    15311531            if (AudioMixerSinkGetStatus(pThis->pSinkLineIn) & AUDMIXSINK_STS_DIRTY)
    1532                 fDoNextTransfer = true;
     1532                fKickTimer = true;
    15331533        }
    15341534
     
    15411541
    15421542            if (AudioMixerSinkGetStatus(pThis->pSinkMicIn) & AUDMIXSINK_STS_DIRTY)
    1543                 fDoNextTransfer = true;
     1543                fKickTimer = true;
    15441544        }
    15451545
     
    15521552
    15531553            if (AudioMixerSinkGetStatus(pThis->pSinkOut) & AUDMIXSINK_STS_DIRTY)
    1554                 fDoNextTransfer = true;
    1555         }
    1556 
    1557         if (fDoNextTransfer)
     1554                fKickTimer = true;
     1555        }
     1556
     1557        if (fKickTimer)
    15581558        {
    15591559            /* Kick the timer again. */
     
    30103010        if (RT_SUCCESS(rc))
    30113011        {
    3012             /* Start the emulation timer. */
     3012            /* Create the emulation timer. */
    30133013            rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, ichac97Timer, pThis,
    30143014                                        TMTIMER_FLAGS_NO_CRIT_SECT, "DevIchAc97", &pThis->pTimer);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette