Changeset 68132 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 27, 2017 8:15:43 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117212
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r68085 r68132 86 86 87 87 /* Sanity. */ 88 AssertCompileSize(PDMAUDIO SAMPLE, sizeof(int64_t) * 2 /* st_sample_t using by VRDP server */);88 AssertCompileSize(PDMAUDIOFRAME, sizeof(int64_t) * 2 /* st_sample_t using by VRDP server */); 89 89 90 90 static int vrdeCreateStreamIn(PVRDESTREAM pStreamVRDE, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq) … … 105 105 */ 106 106 pCfgAcq->enmLayout = PDMAUDIOSTREAMLAYOUT_RAW; 107 pCfgAcq->c SampleBufferHint = pStreamVRDE->In.csMax;107 pCfgAcq->cFrameBufferHint = pStreamVRDE->In.csMax; 108 108 } 109 109 } … … 127 127 */ 128 128 pCfgAcq->enmLayout = PDMAUDIOSTREAMLAYOUT_RAW; 129 pCfgAcq->c SampleBufferHint = _4K; /** @todo Make this configurable. */129 pCfgAcq->cFrameBufferHint = _4K; /** @todo Make this configurable. */ 130 130 } 131 131 … … 292 292 int rc = VINF_SUCCESS; 293 293 294 PPDMAUDIO SAMPLE paSampleBuf = (PPDMAUDIOSAMPLE)pvBuf;294 PPDMAUDIOFRAME paSampleBuf = (PPDMAUDIOFRAME)pvBuf; 295 295 AssertPtr(paSampleBuf); 296 296 … … 501 501 /* Return samples instead of bytes here 502 502 * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */ 503 return (uint32_t)PDMAUDIOSTREAMCFG_B2 S(pStreamVRDE->pCfg, RTCircBufUsed(pStreamVRDE->In.pCircBuf));503 return (uint32_t)PDMAUDIOSTREAMCFG_B2F(pStreamVRDE->pCfg, RTCircBufUsed(pStreamVRDE->In.pCircBuf)); 504 504 } 505 505 -
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r68085 r68132 375 375 376 376 if (pCfgAcq) 377 pCfgAcq->c SampleBufferHint = 0;377 pCfgAcq->cFrameBufferHint = 0; 378 378 379 379 LogRel2(("VideoRec: Support for surround audio not implemented yet\n")); … … 409 409 pCfgAcq->Props.uHz = pSink->Codec.Parms.uHz; 410 410 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBits, pCfgAcq->Props.cChannels); 411 pCfgAcq->c SampleBufferHint = _4K; /** @todo Make this configurable. */411 pCfgAcq->cFrameBufferHint = _4K; /** @todo Make this configurable. */ 412 412 } 413 413 } … … 586 586 587 587 const uint32_t csFrame = pSink->Codec.Opus.csFrame; 588 const uint32_t cbFrame = PDMAUDIOSTREAMCFG_ S2B(pStreamAV->pCfg, csFrame);588 const uint32_t cbFrame = PDMAUDIOSTREAMCFG_F2B(pStreamAV->pCfg, csFrame); 589 589 590 590 while (RTCircBufUsed(pCircBuf) >= cbFrame)
Note:
See TracChangeset
for help on using the changeset viewer.