Changeset 57451 in vbox for trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
- Timestamp:
- Aug 19, 2015 9:39:17 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r57397 r57451 214 214 215 215 return rc; 216 } 217 218 /** 219 * Returns available number of samples for reading. 220 * 221 * @return uint32_t Number of samples available for reading. 222 * @param pMixBuf Mixing buffer to return value for. 223 */ 224 uint32_t AudioMixBufAvail(PPDMAUDIOMIXBUF pMixBuf) 225 { 226 AssertPtrReturn(pMixBuf, true); 227 228 uint32_t cAvail; 229 if (pMixBuf->pParent) /* Child */ 230 cAvail = pMixBuf->cMixed; 231 else 232 cAvail = pMixBuf->cProcessed; 233 234 Assert(cAvail <= pMixBuf->cSamples); 235 return cAvail; 216 236 } 217 237 … … 932 952 933 953 /** 934 * Returns the number of audio samples mixed (processed) from954 * Returns the number of audio samples mixed (processed) by 935 955 * the parent mixing buffer. 936 956 * … … 963 983 AssertPtrReturn(pDst, VERR_INVALID_POINTER); 964 984 AssertPtrReturn(pSrc, VERR_INVALID_POINTER); 985 AssertReturn(cSamples, VERR_INVALID_PARAMETER); 965 986 /* pcProcessed is optional. */ 966 987 … … 1264 1285 AssertPtrReturn(pMixBuf, VERR_INVALID_POINTER); 1265 1286 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 1266 AssertReturn(cbBuf, VERR_INVALID_PARAMETER);1267 1287 /* pcbRead is optional. */ 1268 1288
Note:
See TracChangeset
for help on using the changeset viewer.