Changeset 92196 in vbox
- Timestamp:
- Nov 3, 2021 5:33:11 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r92195 r92196 2473 2473 && pauBuf[i + 3] == byBeacon) 2474 2474 { 2475 //if (pBeacon->cbProcessed) 2476 //{ 2477 //LogRel(("AudioTestBeaconAddConsecutive: Beacon %s started (last was %RU32@%zu)\n", AudioTestBeaconTypeGetName(pBeacon->enmType), cbBeacon, i)); 2478 if (offGap) 2479 { 2480 pBeacon->cbProcessed = 0; 2481 } 2482 pBeacon->cbProcessed += cbStep; 2483 offGap = 0; 2484 //fInBeacon = true; 2485 //offLastBeacon = i; 2486 //} 2487 //cbBeacon += cbFrameSize; 2475 if (offGap) 2476 { 2477 pBeacon->cbProcessed = 0; 2478 } 2479 pBeacon->cbProcessed += cbStep; 2480 offGap = 0; 2488 2481 } 2489 2482 else 2490 {2491 #if 02492 if (fInBeacon)2493 {2494 //LogRel(("AudioTestBeaconAddConsecutive: Beacon %s ended (%RU32@%zu)\n", AudioTestBeaconTypeGetName(pBeacon->enmType), cbBeacon, offLastBeacon));2495 fInBeacon = false;2496 continue;2497 }2498 #endif2499 2483 offGap = i; 2500 } 2501 } 2502 2503 #if 0 2504 if ( cbBeacon 2505 && ( fInBeacon 2506 || offLastBeacon == 0) 2507 ) 2508 { 2509 pBeacon->cbProcessed += cbBeacon; 2510 Assert(pBeacon->cbProcessed <= pBeacon->cbToProcess); 2511 } 2512 2513 if (cbBeacon) 2514 LogRel(("AudioTestBeaconAddConsecutive: %s in=%RTbool cb=%RU32 -> cbProc=%RU32\n", AudioTestBeaconTypeGetName(pBeacon->enmType), fInBeacon, cbBeacon, pBeacon->cbProcessed)); 2515 //LogRel(("AudioTestBeaconAddConsecutive: Beacon proc finished (last was cbBuf=%RU32, fInBeacon=%RTbool, cbBeacon=%RU32, cbProc=%RU32)\n", cbBuf, fInBeacon, cbBeacon, pBeacon->cbProcessed)); 2516 #endif 2484 } 2517 2485 2518 2486 Assert(pBeacon->cbProcessed >= cbProcessedInitial); -
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r92195 r92196 1112 1112 /* Whether we count all silence as recorded data or not. 1113 1113 * Currently we don't, as otherwise consequtively played tones will be cut off in the end. */ 1114 bool const fCountAllSilenceAsData = false; 1115 if ( !fIsAllSilence 1116 || (fIsAllSilence == fCountAllSilenceAsData)) 1114 if (!fIsAllSilence) 1117 1115 pTst->t.TestTone.u.Play.cbRead += cbBuf; 1118 1116
Note:
See TracChangeset
for help on using the changeset viewer.