Changeset 90718 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Aug 18, 2021 1:51:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r90704 r90718 296 296 * 1. Arm the (host) ValKit ATS with the recording parameters. 297 297 */ 298 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Telling ValKit audio driver on host to record new tone ...\n"); 298 299 rc = AudioTestSvcClientToneRecord(&pTstEnv->u.Host.AtsClValKit, pToneParms); 299 300 if (RT_SUCCESS(rc)) … … 302 303 * 2. Tell the guest ATS to start playback. 303 304 */ 305 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Telling guest VKAT to play tone ...\n"); 304 306 rc = AudioTestSvcClientTonePlay(&pTstEnv->u.Host.AtsClGuest, pToneParms); 305 307 if (RT_FAILURE(rc)) … … 313 315 if (RT_SUCCESS(rc)) 314 316 { 317 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Playing tone done\n"); 318 315 319 /* Give the audio stack a random amount of time for draining data before the next iteration. */ 316 320 if (pTstParms->cIterations > 1) … … 543 547 rc = AudioTestSvcClientTestSetBegin(&pTstEnv->u.Host.AtsClValKit, pTstEnv->szTag); 544 548 if (RT_SUCCESS(rc)) 549 { 545 550 rc = AudioTestSvcClientTestSetBegin(&pTstEnv->u.Host.AtsClGuest, pTstEnv->szTag); 551 if (RT_FAILURE(rc)) 552 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, 553 "Beginning test set on guest failed with %Rrc\n", rc); 554 } 555 else 556 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, 557 "Beginning test set on host (Validation Kit audio driver) failed with %Rrc\n", rc); 546 558 547 559 if (RT_SUCCESS(rc)) … … 562 574 563 575 int rc2 = AudioTestSvcClientTestSetEnd(&pTstEnv->u.Host.AtsClGuest, pTstEnv->szTag); 564 if (RT_SUCCESS(rc)) 565 rc = rc2; 576 if (RT_FAILURE(rc2)) 577 { 578 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Ending test set on guest failed with %Rrc\n", rc2); 579 if (RT_SUCCESS(rc)) 580 rc = rc2; 581 } 566 582 567 583 rc2 = AudioTestSvcClientTestSetEnd(&pTstEnv->u.Host.AtsClValKit, pTstEnv->szTag); 568 if (RT_SUCCESS(rc)) 569 rc = rc2; 584 if (RT_FAILURE(rc2)) 585 { 586 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, 587 "Ending test set on host (Validation Kit audio driver) failed with %Rrc\n", rc2); 588 if (RT_SUCCESS(rc)) 589 rc = rc2; 590 } 570 591 571 592 if ( !g_fTerminate
Note:
See TracChangeset
for help on using the changeset viewer.