Changeset 62364 in vbox
- Timestamp:
- Jul 20, 2016 3:51:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r61887 r62364 19 19 #include <VBox/log.h> 20 20 21 #if def DEBUG_andy21 #if 0 22 22 /* 23 23 * AUDIOMIXBUF_DEBUG_DUMP_PCM_DATA enables dumping the raw PCM data … … 924 924 925 925 /** 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. 927 934 * 928 935 * @return uint32_t Number of live samples available. … … 933 940 AssertPtrReturn(pMixBuf, 0); 934 941 935 uint32_t cSamples, cAvail; 942 #ifdef DEBUG 943 uint32_t cSamples; 944 #endif 945 uint32_t cAvail; 936 946 if (pMixBuf->pParent) /* Is this a child buffer? */ 937 947 { 948 #ifdef DEBUG 938 949 /* Use the sample count from the parent, as 939 950 * pMixBuf->cMixed specifies the sample count 940 951 * in parent samples. */ 941 952 cSamples = pMixBuf->pParent->cSamples; 953 #endif 942 954 cAvail = pMixBuf->cMixed; 943 955 } 944 956 else 945 957 { 958 #ifdef DEBUG 946 959 cSamples = pMixBuf->cSamples; 960 #endif 947 961 cAvail = pMixBuf->cUsed; 948 962 } … … 1844 1858 convOpts.From.Volume.uRight = pMixBuf->Volume.uRight; 1845 1859 1846 LogFlowFunc(("ASDF %RU32 %RU32\n", pMixBuf->Volume.uLeft, pMixBuf->Volume.uRight));1847 1848 1860 /* Anything to do at all? */ 1849 1861 if (cLenDst1)
Note:
See TracChangeset
for help on using the changeset viewer.