Changeset 91913 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Oct 20, 2021 7:15:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r91910 r91913 531 531 uint32_t cbBeaconPlayed = 0; 532 532 533 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing %RU32 bytes total\n", cbToPlayTotal); 534 if (cbBeaconToPlay) 533 if (cbBeacon) 535 534 { 536 535 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing 2 x %RU32 bytes pre/post beacons\n", cbBeaconToPlay); … … 540 539 if (pTstEnv) 541 540 { 541 AudioTestObjAddMetadataStr(Obj, "beacon_pre_bytes=%RU32\n", cbBeacon); 542 AudioTestObjAddMetadataStr(Obj, "beacon_post_bytes=%RU32\n", cbBeacon); 542 543 AudioTestObjAddMetadataStr(Obj, "stream_to_play_bytes=%RU32\n", cbToPlayTotal); 543 544 AudioTestObjAddMetadataStr(Obj, "stream_period_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPeriod); … … 548 549 AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pStream->Cfg.Device.cMsSchedulingHint); 549 550 } 551 552 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing %RU32 bytes total\n", cbToPlayTotal); 550 553 551 554 PAUDIOTESTDRVMIXSTREAM pMix = &pStream->Mix; … … 744 747 uint64_t cbToRecTotal = PDMAudioPropsMilliToBytes(&pStream->Cfg.Props, pParms->msDuration); 745 748 746 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Recording %RU32 bytes total\n", cbToRecTotal);747 748 749 /* We record a pre + post beacon before + after the actual test tone 749 750 * with exactly AUDIOTEST_BEACON_SIZE_FRAMES audio frames. */ … … 753 754 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Recording 2 x %RU32 bytes pre/post beacons\n", cbBeacon); 754 755 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); 755 759 } 756 760 … … 761 765 * has nothing to do with the device emulation scheduling hint. */ 762 766 AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pIoOpts->cMsSchedulingHint); 767 768 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Recording %RU32 bytes total\n", cbToRecTotal); 763 769 764 770 uint8_t abSamples[16384];
Note:
See TracChangeset
for help on using the changeset viewer.