VirtualBox

Ignore:
Timestamp:
Oct 20, 2021 7:15:43 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Added the pre/post beacon sizes to the test set manifest. ​bugref:10008

File:
1 edited

Legend:

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

    r91910 r91913  
    531531        uint32_t       cbBeaconPlayed = 0;
    532532
    533         RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing %RU32 bytes total\n", cbToPlayTotal);
    534         if (cbBeaconToPlay)
     533        if (cbBeacon)
    535534        {
    536535            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing 2 x %RU32 bytes pre/post beacons\n", cbBeaconToPlay);
     
    540539        if (pTstEnv)
    541540        {
     541            AudioTestObjAddMetadataStr(Obj, "beacon_pre_bytes=%RU32\n", cbBeacon);
     542            AudioTestObjAddMetadataStr(Obj, "beacon_post_bytes=%RU32\n", cbBeacon);
    542543            AudioTestObjAddMetadataStr(Obj, "stream_to_play_bytes=%RU32\n",      cbToPlayTotal);
    543544            AudioTestObjAddMetadataStr(Obj, "stream_period_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPeriod);
     
    548549            AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pStream->Cfg.Device.cMsSchedulingHint);
    549550        }
     551
     552        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing %RU32 bytes total\n", cbToPlayTotal);
    550553
    551554        PAUDIOTESTDRVMIXSTREAM pMix = &pStream->Mix;
     
    744747        uint64_t cbToRecTotal = PDMAudioPropsMilliToBytes(&pStream->Cfg.Props, pParms->msDuration);
    745748
    746         RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Recording %RU32 bytes total\n", cbToRecTotal);
    747 
    748749        /* We record a pre + post beacon before + after the actual test tone
    749750         * with exactly AUDIOTEST_BEACON_SIZE_FRAMES audio frames. */
     
    753754            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Recording 2 x %RU32 bytes pre/post beacons\n", cbBeacon);
    754755            cbToRecTotal += cbBeacon * 2 /* Pre + post beacon */;
     756
     757            AudioTestObjAddMetadataStr(Obj, "beacon_pre_bytes=%RU32\n", cbBeacon);
     758            AudioTestObjAddMetadataStr(Obj, "beacon_post_bytes=%RU32\n", cbBeacon);
    755759        }
    756760
     
    761765         *       has nothing to do with the device emulation scheduling hint. */
    762766        AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pIoOpts->cMsSchedulingHint);
     767
     768        RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Recording %RU32 bytes total\n", cbToRecTotal);
    763769
    764770        uint8_t         abSamples[16384];
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