Changeset 68391 in vbox for trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
- Timestamp:
- Aug 11, 2017 12:36:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r68272 r68391 69 69 struct 70 70 { 71 /** Number of samples this stream can handle at once. */72 uint32_t c sMax;71 /** Number of audio frames this stream can handle at once. */ 72 uint32_t cfMax; 73 73 /** Circular buffer for holding the recorded audio samples from the host. */ 74 74 PRTCIRCBUF pCircBuf; … … 90 90 static int vrdeCreateStreamIn(PVRDESTREAM pStreamVRDE, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq) 91 91 { 92 pStreamVRDE->In.c sMax = _1K; /** @todo Make this configurable. */93 94 int rc = RTCircBufCreate(&pStreamVRDE->In.pCircBuf, pStreamVRDE->In.c sMax * (pCfgReq->Props.cBits / 8) /* Bytes */);92 pStreamVRDE->In.cfMax = _1K; /** @todo Make this configurable. */ 93 94 int rc = RTCircBufCreate(&pStreamVRDE->In.pCircBuf, pStreamVRDE->In.cfMax * (pCfgReq->Props.cBits / 8) /* Bytes */); 95 95 if (RT_SUCCESS(rc)) 96 96 { … … 104 104 * the data without any layout modification needed. 105 105 */ 106 pCfgAcq->enmLayout 107 pCfgAcq->cFrameBufferHint = pStreamVRDE->In.c sMax;106 pCfgAcq->enmLayout = PDMAUDIOSTREAMLAYOUT_RAW; 107 pCfgAcq->cFrameBufferHint = pStreamVRDE->In.cfMax; 108 108 } 109 109 } … … 158 158 case PDMAUDIOSTREAMCMD_ENABLE: 159 159 { 160 rc = pDrv->pConsoleVRDPServer->SendAudioInputBegin(NULL, pStreamVRDE, pStreamVRDE->In.c sMax,160 rc = pDrv->pConsoleVRDPServer->SendAudioInputBegin(NULL, pStreamVRDE, pStreamVRDE->In.cfMax, 161 161 pStreamVRDE->pCfg->Props.uHz, pStreamVRDE->pCfg->Props.cChannels, 162 162 pStreamVRDE->pCfg->Props.cBits);
Note:
See TracChangeset
for help on using the changeset viewer.