Changeset 90509 in vbox for trunk/src/VBox/ValidationKit/utils/audio
- Timestamp:
- Aug 4, 2021 8:26:13 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r90507 r90509 313 313 if (RT_SUCCESS(rc)) 314 314 { 315 if (pTstParms->cIterations) 316 RTThreadSleep(RTRandU32Ex(2000, 5000)); 315 /* Give the audio stack a random amount of time for draining data before the next iteration. */ 316 if (pTstParms->cIterations > 1) 317 RTThreadSleep(RTRandU32Ex(2000, 5000)); /** @todo Implement some dedicated ATS command for this? */ 317 318 } 318 319 … … 411 412 pTstParms->idxCurrent, i, rc); 412 413 413 /* Wait a bit to let the left over audio bits being processed. */ 414 if (pTstParms->cIterations) 415 RTThreadSleep(RTRandU32Ex(2000, 5000)); 414 if (RT_SUCCESS(rc)) 415 { 416 /* Wait a bit to let the left over audio bits being processed. */ 417 if (pTstParms->cIterations > 1) 418 RTThreadSleep(RTRandU32Ex(2000, 5000)); /** @todo Implement some dedicated ATS command for this? */ 419 } 416 420 417 421 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.