VirtualBox

Changeset 103566 in vbox


Ignore:
Timestamp:
Feb 26, 2024 12:53:01 PM (11 months ago)
Author:
vboxsync
Message:

Audio/VKAT: Bugfixes for AudioTestBeaconAddConsecutive().

File:
1 edited

Legend:

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

    r103415 r103566  
    25772577            && pauBuf[i + 3] == byBeacon)
    25782578        {
     2579            offBeacon = i + cbStep; /* Point to data right *after* the beacon. */
     2580
    25792581            /* Make sure to handle overflows and let beacon start from scratch. */
    25802582            pBeacon->cbUsed = (pBeacon->cbUsed + cbStep) % pBeacon->cbSize;
     
    25822584            {
    25832585                pBeacon->cbUsed = pBeacon->cbSize;
    2584                 offBeacon       = i + cbStep; /* Point to data right *after* the beacon. */
     2586                break;
    25852587            }
    25862588        }
    25872589        else
    25882590        {
    2589             /* If beacon is not complete yet, we detected a gap here. Start all over then. */
    2590             if (RT_LIKELY(pBeacon->cbUsed != pBeacon->cbSize))
    2591                 pBeacon->cbUsed = 0;
     2591            /* If beacon is complete, just skip, otherwise we detected a gap here. Start all over then. */
     2592            if (RT_UNLIKELY(pBeacon->cbUsed == pBeacon->cbSize))
     2593                break;
     2594
     2595            pBeacon->cbUsed = 0;
     2596            offBeacon       = UINT64_MAX;
    25922597        }
    25932598    }
Note: See TracChangeset for help on using the changeset viewer.

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