VirtualBox

Ignore:
Timestamp:
Apr 7, 2015 9:18:03 AM (10 years ago)
Author:
vboxsync
Message:

DrvHostDSound: more optional release logging

File:
1 edited

Legend:

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

    r54955 r55109  
    3434
    3535#define DSLOG(a) do { LogRel2(a); } while(0)
     36#define DSLOGF(a) do { LogRel3(a); } while(0)
    3637#define DSLOGREL(a)                 \
    3738    do {                            \
     
    11841185    pDSoundStrmOut->cbPlayWritePos = (cbPlayWritePos + (cReadTotal << cShift)) % cbBuffer;
    11851186
    1186     LogFlow(("DSound: PlayOut %RU32 (%RU32 samples) out of %d%s, ds write pos %d -> %d, rc=%Rrc\n",
    1187              AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cReadTotal), cReadTotal, cbLive,
    1188              cbLive != AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cReadTotal) ? " !!!": "",
    1189              cbPlayWritePos, pDSoundStrmOut->cbPlayWritePos, rc));
     1187    DSLOGF(("DSound: PlayOut %RU32 (%RU32 samples) out of %d%s, ds write pos %d -> %d, rc=%Rrc\n",
     1188            AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cReadTotal), cReadTotal, cbLive,
     1189            cbLive != AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cReadTotal) ? " !!!": "",
     1190            cbPlayWritePos, pDSoundStrmOut->cbPlayWritePos, rc));
    11901191
    11911192    if (cReadTotal)
     
    13631364    }
    13641365
    1365     LogFlow(("DSound: CaptureIn csMixFree = %u, csReadPos = %d, csCaptureReadPos = %d, csCaptured = %u\n",
    1366              csMixFree, csReadPos, pDSoundStrmIn->csCaptureReadPos, csCaptured));
     1366    DSLOGF(("DSound: CaptureIn csMixFree = %u, csReadPos = %d, csCaptureReadPos = %d, csCaptured = %u\n",
     1367            csMixFree, csReadPos, pDSoundStrmIn->csCaptureReadPos, csCaptured));
    13671368
    13681369    /* No need to fetch more samples than mix buffer can receive. */
     
    14201421    {
    14211422        pDSoundStrmIn->csCaptureReadPos = (pDSoundStrmIn->csCaptureReadPos + csProcessed) % pDSoundStrmIn->csCaptureBufferSize;
    1422         LogFlow(("DSound: CaptureIn %d (%d+%d), processed %d/%d\n",
    1423                  csCaptured, len1, len2, csProcessed, csWrittenTotal));
     1423        DSLOGF(("DSound: CaptureIn %d (%d+%d), processed %d/%d\n",
     1424                csCaptured, len1, len2, csProcessed, csWrittenTotal));
    14241425    }
    14251426
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