- Timestamp:
- Oct 25, 2021 4:29:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r92020 r92048 307 307 RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec)); 308 308 309 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 /%RU16: Playing test tone (%RU16Hz, %RU32ms)\n",310 pTstParms->idxCurrent, i , (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);309 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 (%RU16/%RU16): Playing test tone (%RU16Hz, %RU32ms)\n", 310 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration); 311 311 312 312 /* … … 326 326 rc = AudioTestSvcClientTonePlay(&pTstEnv->u.Host.AtsClGuest, pToneParms); 327 327 if (RT_FAILURE(rc)) 328 RTTestFailed(g_hTest, "Test #%RU32 /%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",329 pTstParms->idxCurrent, i , rc);328 RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientTonePlay() failed with %Rrc\n", 329 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 330 330 } 331 331 else 332 RTTestFailed(g_hTest, "Test #%RU32/%RU16 : AudioTestSvcClientToneRecord() failed with %Rrc\n",333 pTstParms->idxCurrent, i , rc);332 RTTestFailed(g_hTest, "Test #%RU32/%RU16 (%RU16/%RU16): AudioTestSvcClientToneRecord() failed with %Rrc\n", 333 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 334 334 335 335 if (RT_SUCCESS(rc)) … … 344 344 if (RT_FAILURE(rc)) 345 345 { 346 RTTestFailed(g_hTest, "Test #%RU32/%RU16: Playing test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc); 346 RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): Playing test tone failed with %Rrc\n", 347 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 347 348 break; /* Not worth retrying, bail out. */ 348 349 } … … 405 406 RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec)); 406 407 407 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 /%RU16: Recording test tone (%RU16Hz, %RU32ms)\n",408 pTstParms->idxCurrent, i , (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);408 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 (%RU16/%RU16): Recording test tone (%RU16Hz, %RU32ms)\n", 409 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration); 409 410 410 411 /* … … 421 422 rc = AudioTestSvcClientToneRecord(&pTstEnv->u.Host.AtsClGuest, &pTstParms->TestTone); 422 423 if (RT_FAILURE(rc)) 423 RTTestFailed(g_hTest, "Test #%RU32 /%RU16: AudioTestSvcClientToneRecord() failed with %Rrc\n",424 pTstParms->idxCurrent, i , rc);424 RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientToneRecord() failed with %Rrc\n", 425 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 425 426 } 426 427 else 427 RTTestFailed(g_hTest, "Test #%RU32 /%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",428 pTstParms->idxCurrent, i , rc);428 RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientTonePlay() failed with %Rrc\n", 429 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 429 430 430 431 if (RT_SUCCESS(rc)) … … 437 438 if (RT_FAILURE(rc)) 438 439 { 439 RTTestFailed(g_hTest, "Test #%RU32/%RU16: Recording test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc); 440 RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): Recording test tone failed with %Rrc\n", 441 pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc); 440 442 break; /* Not worth retrying, bail out. */ 441 443 }
Note:
See TracChangeset
for help on using the changeset viewer.