Changeset 55921 in vbox
- Timestamp:
- May 18, 2015 7:15:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r55650 r55921 173 173 if (pVRDEStrmIn->cSamplesCaptured) 174 174 { 175 rc = audioMixBufMixToParent(&pVRDEStrmIn->HstStrmIn.MixBuf, pVRDEStrmIn->cSamplesCaptured,175 rc = AudioMixBufMixToParent(&pVRDEStrmIn->HstStrmIn.MixBuf, pVRDEStrmIn->cSamplesCaptured, 176 176 &cProcessed); 177 177 } … … 250 250 PPDMAUDIOSAMPLE pSamples; 251 251 uint32_t cRead; 252 int rc = audioMixBufAcquire(&pHstStrmOut->MixBuf, cSamplesToSend,252 int rc = AudioMixBufAcquire(&pHstStrmOut->MixBuf, cSamplesToSend, 253 253 &pSamples, &cRead); 254 254 if ( RT_SUCCESS(rc) … … 260 260 if (rc == VINF_TRY_AGAIN) 261 261 { 262 rc = audioMixBufAcquire(&pHstStrmOut->MixBuf, cSamplesToSend - cRead,262 rc = AudioMixBufAcquire(&pHstStrmOut->MixBuf, cSamplesToSend - cRead, 263 263 &pSamples, &cRead); 264 264 if (RT_SUCCESS(rc)) … … 269 269 } 270 270 271 audioMixBufFinish(&pHstStrmOut->MixBuf, cSamplesToSend);271 AudioMixBufFinish(&pHstStrmOut->MixBuf, cSamplesToSend); 272 272 273 273 /* … … 312 312 LogFlowFunc(("enmStreamCmd=%ld\n", enmStreamCmd)); 313 313 314 audioMixBufReset(&pHstStrmOut->MixBuf);314 AudioMixBufReset(&pHstStrmOut->MixBuf); 315 315 316 316 return VINF_SUCCESS; … … 333 333 return VINF_SUCCESS; 334 334 335 audioMixBufReset(&pThisStrmIn->MixBuf);335 AudioMixBufReset(&pThisStrmIn->MixBuf); 336 336 337 337 /* Initialize only if not already done. */ … … 339 339 if (enmStreamCmd == PDMAUDIOSTREAMCMD_ENABLE) 340 340 { 341 rc = pDrv->pConsoleVRDPServer->SendAudioInputBegin(NULL, pVRDEStrmIn, audioMixBufSize(&pThisStrmIn->MixBuf),341 rc = pDrv->pConsoleVRDPServer->SendAudioInputBegin(NULL, pVRDEStrmIn, AudioMixBufSize(&pThisStrmIn->MixBuf), 342 342 pThisStrmIn->Props.uHz, 343 343 pThisStrmIn->Props.cChannels, pThisStrmIn->Props.cBits); … … 459 459 460 460 uint32_t cWritten; 461 int rc = audioMixBufWriteCirc(&pHstStrmIn->MixBuf, pvData, cbData, &cWritten);461 int rc = AudioMixBufWriteCirc(&pHstStrmIn->MixBuf, pvData, cbData, &cWritten); 462 462 if (RT_SUCCESS(rc)) 463 463 pVRDEStrmIn->cSamplesCaptured += cWritten;
Note:
See TracChangeset
for help on using the changeset viewer.