Changeset 91655 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Oct 10, 2021 8:34:33 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147382
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r91644 r91655 524 524 uint32_t cbPlayedTotal = 0; 525 525 526 /* We play a pre + post beacon before + after the actual test tone with exactly 1024 audio frames. */ 527 uint32_t const cbBeacon = PDMAudioPropsFramesToBytes(&pStream->Cfg.Props, 1024); 526 /* We play a pre + post beacon before + after the actual test tone 527 * with exactly AUDIOTEST_BEACON_SIZE_FRAMES audio frames. */ 528 uint32_t const cbBeacon = PDMAudioPropsFramesToBytes(&pStream->Cfg.Props, AUDIOTEST_BEACON_SIZE_FRAMES); 528 529 uint32_t cbBeaconToPlay = cbBeacon; 529 530 uint32_t cbBeaconPlayed = 0; … … 588 589 /* Limit to exactly one beacon (pre or post). */ 589 590 cbToPlay = RT_MIN(sizeof(abBuf), RT_MIN(cbCanWrite, cbBeaconToPlay - cbBeaconPlayed)); 590 memset(abBuf, 0x42 /* Our actual beacon data, hopefully the answer to all ... */, cbToPlay); 591 memset(abBuf, 592 cbPlayedTotal >= cbToPlayTotal - cbBeaconToPlay ? AUDIOTEST_BEACON_BYTE_POST : AUDIOTEST_BEACON_BYTE_PRE, 593 cbToPlay); 591 594 592 595 rc = AudioTestMixStreamPlay(&pStream->Mix, abBuf, cbToPlay, &cbPlayed);
Note:
See TracChangeset
for help on using the changeset viewer.