VirtualBox

Changeset 91570 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2021 2:08:07 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Play a pre + post beacon before + after the actual test tone with exactly 1024 audio frames. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r91532 r91570  
    267267        uint32_t cbPlayedTotal  = 0;
    268268
    269         /* We play a pre + post beacon before + after the actual test tone.
    270          * Note that the beacon is *not* part of the written test object, so that we can detect differences between
    271          * actual played back and serialized (written) data later. */
    272         uint32_t const cbBeacon       = pTstEnv ? 1024 : 0; /* Only play a beacon if we're running in testing mode. */
     269        /* We play a pre + post beacon before + after the actual test tone with exactly 1024 audio frames. */
     270        uint32_t const cbBeacon       = PDMAudioPropsFramesToBytes(&pStream->Cfg.Props, 1024);
    273271        uint32_t       cbBeaconToPlay = cbBeacon;
    274272        uint32_t       cbBeaconPlayed = 0;
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