VirtualBox

Changeset 92337 in vbox for trunk


Ignore:
Timestamp:
Nov 10, 2021 6:50:53 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Adjust the size of the area to compare so that it's within the pre + post beacons. bugref:10008

File:
1 edited

Legend:

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

    r92298 r92337  
    27712771        FileA.cbSize   = cbFileSizeA - FileA.offStart;
    27722772        rc = audioTestToneVerifyBeacon(pVerJob, phTestA->enmTestType == AUDIOTESTTYPE_TESTTONE_PLAY /* fIn */,
    2773                                        false /* fPre */, &FileA, &ToneParmsA, NULL);
     2773                                       false /* fPre */, &FileA, &ToneParmsA, &offBeaconAbs);
     2774        if (RT_SUCCESS(rc))
     2775        {
     2776            /* Adjust the size of the area to compare so that it's within the pre + post beacons. */
     2777            Assert(offBeaconAbs >= FileA.offStart);
     2778            FileA.cbSize = offBeaconAbs - FileA.offStart;
     2779        }
    27742780    }
    27752781
     
    27812787        FileB.cbSize   = cbFileSizeB - FileB.offStart;
    27822788        rc = audioTestToneVerifyBeacon(pVerJob, phTestB->enmTestType == AUDIOTESTTYPE_TESTTONE_RECORD /* fIn */,
    2783                                        false /* fPre */, &FileB, &ToneParmsB, NULL);
     2789                                       false /* fPre */, &FileB, &ToneParmsB, &offBeaconAbs);
     2790        if (RT_SUCCESS(rc))
     2791        {
     2792            /* Adjust the size of the area to compare so that it's within the pre + post beacons. */
     2793            Assert(offBeaconAbs >= FileB.offStart);
     2794            FileB.cbSize = offBeaconAbs - FileB.offStart;
     2795        }
    27842796    }
    27852797
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