VirtualBox

Changeset 68381 in vbox for trunk


Ignore:
Timestamp:
Aug 11, 2017 9:27:29 AM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio.cpp: Logging.

File:
1 edited

Legend:

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

    r68356 r68381  
    16071607        uint32_t cbReadable = pThis->pHostDrvAudio->pfnStreamGetReadable(pThis->pHostDrvAudio, pHstStream->pvBackend);
    16081608        if (!cbReadable)
    1609             break;
     1609        {
     1610            Log2Func(("[%s] No readable data available, skipping\n", pHstStream->szName));
     1611            break;
     1612        }
    16101613
    16111614        uint32_t cbFree = AUDIOMIXBUF_F2B(&pHstStream->MixBuf, AudioMixBufFree(&pHstStream->MixBuf));
    16121615        if (!cbFree)
    1613             break;
     1616        {
     1617            Log2Func(("[%s] Host buffer full, skipping\n", pHstStream->szName));
     1618            break;
     1619        }
    16141620
    16151621        if (cbFree < cbReadable) /* More data captured than we can read? */
     
    16511657    }
    16521658
    1653     Log2Func(("[%s] %RU32 frames captured, rc=%Rrc\n", pHstStream->szName, cfCapturedTotal, rc));
     1659    if (RT_SUCCESS(rc))
     1660    {
     1661        if (cfCapturedTotal)
     1662            Log2Func(("[%s] %RU32 frames captured, rc=%Rrc\n", pHstStream->szName, cfCapturedTotal, rc));
     1663    }
     1664    else
     1665        LogFunc(("[%s] Capturing failed with rc=%Rrc\n", pHstStream->szName, rc));
    16541666
    16551667    if (pcfCaptured)
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