Changeset 88255 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 23, 2021 8:43:58 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143458
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r88253 r88255 507 507 static DECLCALLBACK(uint32_t) drvAudioVrdeHA_StreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 508 508 { 509 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 510 PVRDESTREAM pStreamVRDE = (PVRDESTREAM)pStream; 511 512 PPDMAUDIOPCMPROPS pProps = &pStreamVRDE->pCfg->Props; 513 514 RT_NOREF(pDrv, pProps); 515 516 /* Return frames instead of bytes here 517 * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */ 509 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 510 RT_NOREF(pStream); 511 512 /** @todo Find some sane value here. We probably need a VRDE API VRDE to specify this. */ 518 513 if (pDrv->cClients) 519 return _16K; /** @todo Find some sane value here. We probably need a VRDE API VRDE to specify this. */ 520 514 return _16K * sizeof(PDMAUDIOFRAME); 521 515 return 0; 522 516 }
Note:
See TracChangeset
for help on using the changeset viewer.