Changeset 73529 in vbox for trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
- Timestamp:
- Aug 6, 2018 4:26:43 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r73464 r73529 87 87 pCfgAcq->Props.uHz = 22050; /* The VRDP server's internal frequency. */ 88 88 pCfgAcq->Props.cChannels = 2; 89 pCfgAcq->Props.cB its = 16;89 pCfgAcq->Props.cBytes = 2; /* 16 bit. */ 90 90 pCfgAcq->Props.fSigned = true; 91 91 pCfgAcq->Props.fSwapEndian = false; 92 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cB its, pCfgAcq->Props.cChannels);92 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBytes, pCfgAcq->Props.cChannels); 93 93 94 94 /* According to the VRDP docs, the VRDP server stores audio in 200ms chunks. */ … … 133 133 pCfgAcq->Props.uHz = 22050; /* The VRDP server's internal frequency. */ 134 134 pCfgAcq->Props.cChannels = 2; 135 pCfgAcq->Props.cB its = 16;135 pCfgAcq->Props.cBytes = 2; /* 16 bit. */ 136 136 pCfgAcq->Props.fSigned = true; 137 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cB its, pCfgAcq->Props.cChannels);137 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBytes, pCfgAcq->Props.cChannels); 138 138 139 139 /* According to the VRDP docs, the VRDP server stores audio in 200ms chunks. */ … … 174 174 DrvAudioHlpMilliToFrames(200 /* ms */, &pStreamVRDE->pCfg->Props), 175 175 pStreamVRDE->pCfg->Props.uHz, pStreamVRDE->pCfg->Props.cChannels, 176 pStreamVRDE->pCfg->Props.cB its);176 pStreamVRDE->pCfg->Props.cBytes * 8 /* Bit */); 177 177 if (rc == VERR_NOT_SUPPORTED) 178 178 { … … 291 291 VRDEAUDIOFORMAT format = VRDE_AUDIO_FMT_MAKE(pProps->uHz, 292 292 pProps->cChannels, 293 pProps->cB its,293 pProps->cBytes * 8 /* Bit */, 294 294 pProps->fSigned); 295 295
Note:
See TracChangeset
for help on using the changeset viewer.