VirtualBox

Changeset 62364 in vbox


Ignore:
Timestamp:
Jul 20, 2016 3:51:47 PM (8 years ago)
Author:
vboxsync
Message:

Audio/AudioMixBuffer: Comments, logging.

File:
1 edited

Legend:

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

    r61887 r62364  
    1919#include <VBox/log.h>
    2020
    21 #ifdef DEBUG_andy
     21#if 0
    2222/*
    2323 * AUDIOMIXBUF_DEBUG_DUMP_PCM_DATA enables dumping the raw PCM data
     
    924924
    925925/**
    926  * Returns number of available live samples.
     926 * Returns number of available live samples, that is, samples that
     927 * have been written into the mixing buffer but not have been processed yet.
     928 *
     929 * For a parent buffer, this simply returns the currently used number of samples
     930 * in the buffer.
     931 *
     932 * For a child buffer, this returns the number of samples which have been mixed
     933 * to the parent and were not processed by the parent yet.
    927934 *
    928935 * @return  uint32_t                Number of live samples available.
     
    933940    AssertPtrReturn(pMixBuf, 0);
    934941
    935     uint32_t cSamples, cAvail;
     942#ifdef DEBUG
     943    uint32_t cSamples;
     944#endif
     945    uint32_t cAvail;
    936946    if (pMixBuf->pParent) /* Is this a child buffer? */
    937947    {
     948#ifdef DEBUG
    938949        /* Use the sample count from the parent, as
    939950         * pMixBuf->cMixed specifies the sample count
    940951         * in parent samples. */
    941952        cSamples = pMixBuf->pParent->cSamples;
     953#endif
    942954        cAvail   = pMixBuf->cMixed;
    943955    }
    944956    else
    945957    {
     958#ifdef DEBUG
    946959        cSamples = pMixBuf->cSamples;
     960#endif
    947961        cAvail   = pMixBuf->cUsed;
    948962    }
     
    18441858    convOpts.From.Volume.uRight = pMixBuf->Volume.uRight;
    18451859
    1846     LogFlowFunc(("ASDF %RU32 %RU32\n", pMixBuf->Volume.uLeft, pMixBuf->Volume.uRight));
    1847 
    18481860    /* Anything to do at all? */
    18491861    if (cLenDst1)
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