Changeset 90983 in vbox
- Timestamp:
- Aug 29, 2021 2:24:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r90918 r90983 272 272 PDRVHOSTVALKITAUDIO pThis = (PDRVHOSTVALKITAUDIO)pvUser; 273 273 274 LogRel(("ValKit: Beginning test set '%s'\n", pszTag)); 275 274 276 int rc = RTCritSectEnter(&pThis->CritSect); 275 277 if (RT_SUCCESS(rc)) 276 278 { 277 278 LogRel(("ValKit: Beginning test set '%s'\n", pszTag));279 279 rc = AudioTestSetCreate(&pThis->Set, pThis->szPathTemp, pszTag); 280 280 … … 294 294 { 295 295 PDRVHOSTVALKITAUDIO pThis = (PDRVHOSTVALKITAUDIO)pvUser; 296 297 LogRel(("ValKit: Ending test set '%s'\n", pszTag)); 296 298 297 299 int rc = RTCritSectEnter(&pThis->CritSect); … … 309 311 LogRel(("ValKit: Waiting for runnig test set '%s' to end ...\n", pszTag)); 310 312 rc = RTSemEventWait(pThis->EventSemEnded, RT_MS_30SEC); 313 if (RT_FAILURE(rc)) 314 LogRel(("ValKit: Waiting for runnig test set '%s' failed with %Rrc\n", pszTag, rc)); 311 315 312 316 int rc2 = RTCritSectEnter(&pThis->CritSect); … … 318 322 if (RT_SUCCESS(rc)) 319 323 { 320 LogRel(("ValKit: Ending test set '%s'\n", pszTag));324 LogRel(("ValKit: Closing test set '%s' ...\n", pszTag)); 321 325 322 326 /* Close the test set first. */ … … 328 332 rc = AudioTestSetPack(pSet, pThis->szPathOut, pThis->szTestSetArchive, sizeof(pThis->szTestSetArchive)); 329 333 if (RT_SUCCESS(rc)) 334 { 330 335 LogRel(("ValKit: Packed up to '%s'\n", pThis->szTestSetArchive)); 336 } 337 else 338 LogRel(("ValKit: Packing up test set failed with %Rrc\n", rc)); 331 339 332 340 /* Do some internal housekeeping. */ … … 339 347 #endif 340 348 } 341 342 AudioTestSetDestroy(pSet); 349 else 350 LogRel(("ValKit: Closing test set failed with %Rrc\n", rc)); 351 352 int rc2 = AudioTestSetDestroy(pSet); 353 if (RT_FAILURE(rc2)) 354 { 355 LogRel(("ValKit: Destroying test set failed with %Rrc\n", rc)); 356 if (RT_SUCCESS(rc)) 357 rc = rc2; 358 } 343 359 } 344 360 … … 378 394 if (RT_SUCCESS(rc)) 379 395 { 380 LogRel(("ValKit: Register edguest recording test #%RU32 (%RU32ms, %RU64 bytes)\n",396 LogRel(("ValKit: Registering guest recording test #%RU32 (%RU32ms, %RU64 bytes)\n", 381 397 pThis->cTestsTotal, pTestData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Rec.cbToWrite)); 382 398 … … 416 432 if (RT_SUCCESS(rc)) 417 433 { 418 LogRel(("ValKit: Register edguest playback test #%RU32 (%RU32ms, %RU64 bytes)\n",434 LogRel(("ValKit: Registering guest playback test #%RU32 (%RU32ms, %RU64 bytes)\n", 419 435 pThis->cTestsTotal, pTestData->t.TestTone.Parms.msDuration, pTestData->t.TestTone.u.Play.cbToRead)); 420 436 … … 435 451 static DECLCALLBACK(int) drvHostValKitTestSetSendBeginCallback(void const *pvUser, const char *pszTag) 436 452 { 437 RT_NOREF(pszTag);438 439 453 PDRVHOSTVALKITAUDIO pThis = (PDRVHOSTVALKITAUDIO)pvUser; 440 454 … … 462 476 463 477 if (RT_FAILURE(rc)) 464 LogRel(("ValKit: Beginning to send test set failed with %Rrc\n", rc));478 LogRel(("ValKit: Beginning to send test set '%s' failed with %Rrc\n", pszTag, rc)); 465 479 466 480 return rc; … … 471 485 const char *pszTag, void *pvBuf, size_t cbBuf, size_t *pcbRead) 472 486 { 473 RT_NOREF(pszTag);474 475 487 PDRVHOSTVALKITAUDIO pThis = (PDRVHOSTVALKITAUDIO)pvUser; 476 488 … … 480 492 if (RTFileIsValid(pThis->hTestSetArchive)) 481 493 { 482 rc = 494 rc = RTFileRead(pThis->hTestSetArchive, pvBuf, cbBuf, pcbRead); 483 495 } 484 496 else … … 491 503 492 504 if (RT_FAILURE(rc)) 493 LogRel(("ValKit: Reading from test set failed with %Rrc\n", rc));505 LogRel(("ValKit: Reading from test set '%s' failed with %Rrc\n", pszTag, rc)); 494 506 495 507 return rc; … … 499 511 static DECLCALLBACK(int) drvHostValKitTestSetSendEndCallback(void const *pvUser, const char *pszTag) 500 512 { 501 RT_NOREF(pszTag);502 503 513 PDRVHOSTVALKITAUDIO pThis = (PDRVHOSTVALKITAUDIO)pvUser; 504 514 … … 519 529 520 530 if (RT_FAILURE(rc)) 521 LogRel(("ValKit: Ending to send test set failed with %Rrc\n", rc));531 LogRel(("ValKit: Ending to send test set '%s' failed with %Rrc\n", pszTag, rc)); 522 532 523 533 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.