VirtualBox

Changeset 91211 in vbox


Ignore:
Timestamp:
Sep 10, 2021 4:57:36 PM (3 years ago)
Author:
vboxsync
Message:

Audio/VKAT: Implemented the "--count <N>" option. bugref:10008

Location:
trunk/src/VBox/ValidationKit/utils/audio
Files:
2 edited

Legend:

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

    r91210 r91211  
    272272    pTstParmsAcq->Props       = pTstEnv->Props;
    273273    pTstParmsAcq->enmDir      = PDMAUDIODIR_OUT;
    274     pTstParmsAcq->cIterations = RTRandU32Ex(1, 10);
     274    pTstParmsAcq->cIterations = pTstEnv->cIterations == 0 ? RTRandU32Ex(1, 10) : pTstEnv->cIterations;
    275275    pTstParmsAcq->idxCurrent  = 0;
    276276
     
    378378    pTstParmsAcq->Props       = pTstEnv->Props;
    379379    pTstParmsAcq->enmDir      = PDMAUDIODIR_IN;
    380     pTstParmsAcq->cIterations = RTRandU32Ex(1, 10);
     380    pTstParmsAcq->cIterations = pTstEnv->cIterations == 0 ? RTRandU32Ex(1, 10) : pTstEnv->cIterations;
    381381    pTstParmsAcq->idxCurrent  = 0;
    382382
     
    831831
    832832            case VKAT_TEST_OPT_COUNT:
    833                 return RTMsgErrorExitFailure("Not yet implemented!");
     833                TstEnv.cIterations = ValueUnion.u32;
     834                break;
    834835
    835836            case VKAT_TEST_OPT_DEV:
  • trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h

    r91088 r91211  
    233233     *  Might not be available on all systems. */
    234234    uint8_t                 uVolumePercent;
     235    /** Number of iterations for *all* tests specified.
     236     *  When set to 0 (default), a random value (see specific test) will be chosen. */
     237    uint32_t                cIterations;
    235238    /** Output path for storing the test environment's final test files. */
    236239    char                    szTag[AUDIOTEST_TAG_MAX];
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