Changeset 89584 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 9, 2021 2:43:34 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145022
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r89575 r89584 89 89 /** The list node. */ 90 90 RTLISTNODE Node; 91 /** Index in test sequence (0-based). */ 92 uint32_t idxTest; 91 93 /** Current test set entry to process. */ 92 94 PAUDIOTESTENTRY pEntry; … … 122 124 /** Current test set being handled. */ 123 125 AUDIOTESTSET Set; 126 /** Number of total tests created. */ 127 uint32_t cTestsTotal; 124 128 /** Number of tests in \a lstTestsRec. */ 125 129 uint32_t cTestsRec; … … 258 262 if (RT_SUCCESS(rc)) 259 263 { 260 LogRel(("Audio: Validation Kit: Registered guest recording test (%RU32ms, %RU64 bytes)\n",261 pT estData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Rec.cbToWrite));264 LogRel(("Audio: Validation Kit: Registered guest recording test #%RU32 (%RU32ms, %RU64 bytes)\n", 265 pThis->cTestsTotal, pTestData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Rec.cbToWrite)); 262 266 263 267 RTListAppend(&pThis->lstTestsRec, &pTestData->Node); 268 269 pTestData->idxTest = pThis->cTestsTotal++; 264 270 265 271 pThis->cTestsRec++; … … 291 297 if (RT_SUCCESS(rc)) 292 298 { 293 LogRel(("Audio: Validation Kit: Registered guest playback test (%RU32ms, %RU64 bytes)\n",294 pT estData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Play.cbToRead));299 LogRel(("Audio: Validation Kit: Registered guest playback test #%RU32 (%RU32ms, %RU64 bytes)\n", 300 pThis->cTestsTotal, pTestData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Play.cbToRead)); 295 301 296 302 RTListAppend(&pThis->lstTestsPlay, &pTestData->Node); 303 304 pTestData->idxTest = pThis->cTestsTotal++; 297 305 298 306 pThis->cTestsPlay++; … … 512 520 &Parms, &pTst->pEntry); 513 521 if (RT_SUCCESS(rc)) 514 rc = AudioTestSetObjCreateAndRegister(&pThis->Set, " guest-output.pcm", &pTst->pObj);522 rc = AudioTestSetObjCreateAndRegister(&pThis->Set, "host-tone-rec.pcm", &pTst->pObj); 515 523 516 524 if (RT_SUCCESS(rc)) … … 533 541 { 534 542 pTst->t.TestTone.u.Play.cbRead += cbToRead; 535 536 543 Assert(pTst->t.TestTone.u.Play.cbRead <= pTst->t.TestTone.u.Play.cbToRead); 537 544 … … 613 620 &Parms, &pTst->pEntry); 614 621 if (RT_SUCCESS(rc)) 615 rc = AudioTestSetObjCreateAndRegister(&pThis->Set, "host- input.pcm", &pTst->pObj);622 rc = AudioTestSetObjCreateAndRegister(&pThis->Set, "host-tone-play.pcm", &pTst->pObj); 616 623 617 624 if (RT_SUCCESS(rc)) … … 794 801 795 802 if (pThis->cTestsRec) 796 LogRel(("Audio: Validation Kit: Warning: %RU32 guest recording tests still outstanding\n", pThis->cTestsRec)); 797 if (pThis->cTestsPlay) 798 LogRel(("Audio: Validation Kit: Warning: %RU32 guest playback tests still outstanding\n", pThis->cTestsPlay)); 803 LogRel(("Audio: Validation Kit: Warning: %RU32 guest recording tests still outstanding:\n", pThis->cTestsRec)); 799 804 800 805 PVALKITTESTDATA pTst, pTstNext; 801 806 RTListForEachSafe(&pThis->lstTestsRec, pTst, pTstNext, VALKITTESTDATA, Node) 807 { 808 size_t const cbOutstanding = pTst->t.TestTone.u.Rec.cbToWrite - pTst->t.TestTone.u.Rec.cbWritten; 809 if (cbOutstanding) 810 LogRel(("Audio: Validation Kit: \tRecording test #%RU32 has %RU64 bytes outstanding\n", pTst->idxTest, cbOutstanding)); 802 811 drvHostValKiUnregisterRecTest(pThis, pTst); 812 } 813 814 if (pThis->cTestsPlay) 815 LogRel(("Audio: Validation Kit: Warning: %RU32 guest playback tests still outstanding:\n", pThis->cTestsPlay)); 803 816 804 817 RTListForEachSafe(&pThis->lstTestsPlay, pTst, pTstNext, VALKITTESTDATA, Node) 818 { 819 size_t const cbOutstanding = pTst->t.TestTone.u.Play.cbToRead - pTst->t.TestTone.u.Play.cbRead; 820 if (cbOutstanding) 821 LogRel(("Audio: Validation Kit: \tPlayback test #%RU32 has %RU64 bytes outstanding\n", pTst->idxTest, cbOutstanding)); 805 822 drvHostValKiUnregisterPlayTest(pThis, pTst); 823 } 806 824 807 825 Assert(pThis->cTestsRec == 0);
Note:
See TracChangeset
for help on using the changeset viewer.