Changeset 68085 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Jul 21, 2017 12:52:58 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117124
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r68046 r68085 220 220 */ 221 221 static DECLCALLBACK(int) drvAudioVRDEStreamCapture(PPDMIHOSTAUDIO pInterface, 222 PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t c bBuf, uint32_t *pcbRead)222 PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead) 223 223 { 224 224 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 225 225 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 226 226 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 227 AssertReturn(c bBuf, VERR_INVALID_PARAMETER);228 /* pc bRead is optional. */227 AssertReturn(cxBuf, VERR_INVALID_PARAMETER); 228 /* pcxRead is optional. */ 229 229 230 230 PVRDESTREAM pStreamVRDE = (PVRDESTREAM)pStream; … … 236 236 void *pvData; 237 237 238 RTCircBufAcquireReadBlock(pStreamVRDE->In.pCircBuf, c bBuf, &pvData, &cbData);238 RTCircBufAcquireReadBlock(pStreamVRDE->In.pCircBuf, cxBuf, &pvData, &cbData); 239 239 240 240 if (cbData) … … 244 244 } 245 245 246 if (pc bRead)247 *pc bRead = (uint32_t)cbData;246 if (pcxRead) 247 *pcxRead = (uint32_t)cbData; 248 248 249 249 return VINF_SUCCESS; … … 255 255 */ 256 256 static DECLCALLBACK(int) drvAudioVRDEStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 257 const void *pvBuf, uint32_t c bBuf, uint32_t *pcbWritten)257 const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten) 258 258 { 259 259 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 260 260 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 261 261 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 262 AssertReturn(c bBuf, VERR_INVALID_PARAMETER);263 /* pc bWritten is optional. */262 AssertReturn(cxBuf, VERR_INVALID_PARAMETER); 263 /* pcxWritten is optional. */ 264 264 265 265 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); … … 271 271 /* Note: We get the number of *samples* in cbBuf 272 272 * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout) on stream creation. */ 273 uint32_t csLive = c bBuf;273 uint32_t csLive = cxBuf; 274 274 275 275 PPDMAUDIOPCMPROPS pProps = &pStreamVRDE->pCfg->Props; … … 328 328 /* Return samples instead of bytes here 329 329 * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */ 330 if (pc bWritten)331 *pc bWritten = csWritten;330 if (pcxWritten) 331 *pcxWritten = csWritten; 332 332 } 333 333 -
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r67914 r68085 508 508 */ 509 509 static DECLCALLBACK(int) drvAudioVideoRecStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 510 void *pvBuf, uint32_t c bBuf, uint32_t *pcbRead)511 { 512 RT_NOREF(pInterface, pStream, pvBuf, c bBuf);513 514 if (pc bRead)515 *pc bRead = 0;510 void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead) 511 { 512 RT_NOREF(pInterface, pStream, pvBuf, cxBuf); 513 514 if (pcxRead) 515 *pcxRead = 0; 516 516 517 517 return VINF_SUCCESS; … … 523 523 */ 524 524 static DECLCALLBACK(int) drvAudioVideoRecStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 525 const void *pvBuf, uint32_t c bBuf, uint32_t *pcbWritten)525 const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten) 526 526 { 527 527 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 528 528 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 529 529 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 530 AssertReturn(c bBuf, VERR_INVALID_PARAMETER);531 /* pc bWritten is optional. */530 AssertReturn(cxBuf, VERR_INVALID_PARAMETER); 531 /* pcxWritten is optional. */ 532 532 533 533 PDRVAUDIOVIDEOREC pThis = PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface); … … 551 551 size_t cbCircBuf; 552 552 553 uint32_t cbToWrite = c bBuf;553 uint32_t cbToWrite = cxBuf; 554 554 555 555 /* … … 692 692 * encoder actually did process those. 693 693 */ 694 if (pc bWritten)695 *pc bWritten = cbWrittenTotal;694 if (pcxWritten) 695 *pcxWritten = cbWrittenTotal; 696 696 697 697 LogFlowFunc(("csReadTotal=%RU32, rc=%Rrc\n", cbWrittenTotal, rc));
Note:
See TracChangeset
for help on using the changeset viewer.