VirtualBox

Changeset 91532 in vbox


Ignore:
Timestamp:
Oct 4, 2021 6:12:29 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Logging tweaks. ​bugref:10008

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp

    r91209 r91532  
    860860    bool const fIsSilence = PDMAudioPropsIsBufferSilence(&pStream->pStream->Cfg.Props, pvBuf, cbBuf);
    861861
    862     LogRel2(("ValKit: Playing stream '%s' ...\n", pStream->pStream->Cfg.szName));
     862    LogRel2(("ValKit: Playing stream '%s' (%RU32 bytes / %RU64ms -- %RU64 bytes / %RU64ms total so far) ...\n",
     863             pStream->pStream->Cfg.szName,
     864             cbBuf, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, cbBuf),
     865             pThis->cbPlayedTotal, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, pThis->cbPlayedTotal)));
    863866
    864867    int rc = RTCritSectEnter(&pThis->CritSect);
     
    882885    if (pTst == NULL) /* Empty list? */
    883886    {
    884         LogRel2(("ValKit: Warning: Guest is playing back audio (%RU32 bytes, %RU64ms) when no playback test is active\n",
    885                  cbBuf, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, cbBuf)));
     887        LogRel2(("ValKit: Warning: Guest is playing back audio when no playback test is active\n"));
    886888
    887889        pThis->cbPlayedNoTest += cbBuf;
     
    10121014    PVALKITTESTDATA     pTst        = NULL;
    10131015
    1014     LogRel2(("ValKit: Capturing stream '%s' ...\n", pStream->pStream->Cfg.szName));
     1016    LogRel2(("ValKit: Capturing stream '%s' (%RU32 bytes / %RU64ms -- %RU64 bytes / %RU64ms total so far) ...\n",
     1017             pStream->pStream->Cfg.szName,
     1018             cbBuf, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, cbBuf),
     1019             pThis->cbRecordedTotal, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, pThis->cbRecordedTotal)));
    10151020
    10161021    int rc = RTCritSectEnter(&pThis->CritSect);
     
    10341039    if (pTst == NULL) /* Empty list? */
    10351040    {
    1036         LogRel(("ValKit: Warning: Guest is trying to record %RU32 bytes (%RU32ms) of audio data when no recording test is active (%RU32 bytes available)\n",
    1037                 cbBuf, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, cbBuf), pStrmValKit->cbAvail));
     1041        LogRel(("ValKit: Warning: Guest is trying to record audio data when no recording test is active (%RU32 bytes available)\n",
     1042                pStrmValKit->cbAvail));
    10381043
    10391044        /** @todo Not sure yet why this happens after all data has been captured sometimes,
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r91510 r91532  
    274274        uint32_t       cbBeaconPlayed = 0;
    275275
    276         RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Playing %RU32 bytes total\n", cbToPlayTotal);
     276        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing %RU32 bytes total\n", cbToPlayTotal);
    277277        if (cbBeaconToPlay)
    278278        {
    279             RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Playing 2 x %RU32 bytes pre/post beacons\n", cbBeaconToPlay);
     279            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Playing 2 x %RU32 bytes pre/post beacons\n", cbBeaconToPlay);
    280280            cbToPlayTotal += cbBeacon * 2 /* Pre + post beacon */;
    281281        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette