VirtualBox

Changeset 63536 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Aug 16, 2016 10:26:39 AM (8 years ago)
Author:
vboxsync
Message:

Audio: Logging.

File:
1 edited

Legend:

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

    r63534 r63536  
    526526    memcpy(&CfgHostAcq, pCfgHost, sizeof(PDMAUDIOSTREAMCFG));
    527527
     528#ifdef DEBUG
     529        LogFunc(("[%s] Requested host format:\n", pStream->szName));
     530        DrvAudioHlpStreamCfgPrint(pCfgHost);
     531#else
     532        LogRel2(("Audio: Requested %s host format for '%s': %RU32Hz, %s, %RU8 %s\n",
     533                 pCfgGuest->enmDir == PDMAUDIODIR_IN ? "recording" : "playback",  pStream->szName,
     534                 pCfgHost->uHz, DrvAudioHlpAudFmtToStr(pCfgHost->enmFormat),
     535                 pCfgHost->cChannels, pCfgHost->cChannels == 0 ? "Channel" : "Channels"));
     536#endif
     537
    528538    int rc = pThis->pHostDrvAudio->pfnStreamCreate(pThis->pHostDrvAudio, pHstStream,
    529539                                                   pCfgHost /* pCfgReq */, &CfgHostAcq /* pCfgAcq */);
     
    536546    }
    537547    else
     548    {
    538549        LogFlowFunc(("[%s] Initializing stream in host backend failed with rc=%Rrc\n", pStream->szName, rc));
     550    }
     551
     552#ifdef DEBUG
     553        LogFunc(("[%s] Acquired host format:\n",  pStream->szName));
     554        DrvAudioHlpStreamCfgPrint(&CfgHostAcq);
     555#else
     556        LogRel2(("Audio: Acquired %s host format for '%s': %RU32Hz, %s, %RU8 %s\n",
     557                 pCfgGuest->enmDir == PDMAUDIODIR_IN ? "recording" : "playback",  pStream->szName,
     558                 CfgHostAcq.uHz, DrvAudioHlpAudFmtToStr(CfgHostAcq.enmFormat),
     559                 CfgHostAcq.cChannels, CfgHostAcq.cChannels == 0 ? "Channel" : "Channels"));
     560#endif
    539561
    540562    PDMAUDIOPCMPROPS PCMProps;
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