VirtualBox

Changeset 92320 in vbox for trunk/src


Ignore:
Timestamp:
Nov 10, 2021 1:48:36 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148170
Message:

Audio/Validation Kit: More optional release logging. bugref:10008

File:
1 edited

Legend:

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

    r92312 r92320  
    302302            size_t const cbOutstanding = pTst->t.TestTone.u.Rec.cbToWrite - pTst->t.TestTone.u.Rec.cbWritten;
    303303            if (cbOutstanding)
    304                 LogRel(("ValKit: \tWarning: Recording test #%RU32 has %RU64 bytes (%RU32ms) outstanding (%RU8%% left)\n",
     304                LogRel(("ValKit: \tWarning: Recording test #%RU32 has %RU64 bytes (%RU64ms) outstanding (%RU8%% left)\n",
    305305                        pTst->idxTest, cbOutstanding, PDMAudioPropsBytesToMilli(&pTst->t.TestTone.Parms.Props, (uint32_t)cbOutstanding),
    306306                        100 - (pTst->t.TestTone.u.Rec.cbWritten * 100) / RT_MAX(pTst->t.TestTone.u.Rec.cbToWrite, 1)));
     
    322322            size_t const cbOutstanding = pTst->t.TestTone.u.Play.cbToRead - pTst->t.TestTone.u.Play.cbRead;
    323323            if (cbOutstanding)
    324                 LogRel(("ValKit: \tWarning: Playback test #%RU32 has %RU64 bytes (%RU32ms) outstanding (%RU8%% left)\n",
     324                LogRel(("ValKit: \tWarning: Playback test #%RU32 has %RU64 bytes (%RU64ms) outstanding (%RU8%% left)\n",
    325325                        pTst->idxTest, cbOutstanding, PDMAudioPropsBytesToMilli(&pTst->t.TestTone.Parms.Props, (uint32_t)cbOutstanding),
    326326                        100 - (pTst->t.TestTone.u.Play.cbRead * 100) / RT_MAX(pTst->t.TestTone.u.Play.cbToRead, 1)));
     
    11041104            {
    11051105                PAUDIOTESTTONEBEACON pBeacon = &pTst->t.TestTone.Beacon;
     1106
     1107                LogRel3(("ValKit: Test #%RU32: %RU32 bytes (%RU64ms) beacon data remaining\n",
     1108                         pTst->idxTest,
     1109                         AudioTestBeaconGetRemaining(pBeacon),
     1110                         PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, AudioTestBeaconGetRemaining(pBeacon))));
     1111
    11061112                if (    AudioTestBeaconGetSize(pBeacon)
    11071113                    && !AudioTestBeaconIsComplete(pBeacon))
     
    11361142
    11371143                    if (fStarted)
    1138                         LogRel2(("ValKit: Test #%RU32: Detection of %s beacon started (%RU32ms played so far)\n",
     1144                        LogRel2(("ValKit: Test #%RU32: Detection of %s beacon started (%RU64ms played so far)\n",
    11391145                                 pTst->idxTest, AudioTestBeaconTypeGetName(pBeacon->enmType),
    11401146                                 PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, pThis->cbPlayedTotal)));
     
    11571163            case AUDIOTESTSTATE_RUN:
    11581164            {
     1165                uint32_t const cbRemaining = pTst->t.TestTone.u.Play.cbToRead - pTst->t.TestTone.u.Play.cbRead;
     1166
     1167                LogRel3(("ValKit: Test #%RU32: %RU32 bytes (%RU64ms) audio data remaining\n",
     1168                         pTst->idxTest, cbRemaining, PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, cbRemaining)));
     1169
    11591170                /* Whether we count all silence as recorded data or not.
    11601171                 * Currently we don't, as otherwise consequtively played tones will be cut off in the end. */
    11611172                if (!fIsAllSilence)
    11621173                {
    1163                     uint32_t const cbRemaining = pTst->t.TestTone.u.Play.cbToRead - pTst->t.TestTone.u.Play.cbRead;
    1164 
    11651174                    /* Don't read more than we're told to.
    11661175                     * After the actual test tone data there might come a post beacon which also
Note: See TracChangeset for help on using the changeset viewer.

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