Changeset 76778 in vbox for trunk/src/VBox
- Timestamp:
- Jan 11, 2019 2:15:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r76748 r76778 3024 3024 if (pDrvCfg->uPreBufSizeMs != UINT32_MAX) 3025 3025 { 3026 if (!pDrvCfg->uPreBufSizeMs) /* Pre-buffering is set to disabled. */3027 LogRel2(("Audio: Using custom pre-buffering (disabled) for stream '%s'\n", pStream->szName));3028 3026 pCfgReq->Backend.cfPreBuf = DrvAudioHlpMilliToFrames(pDrvCfg->uPreBufSizeMs, &pCfgReq->Props); 3029 3027 } … … 3100 3098 pStream->szName, DrvAudioHlpFramesToMilli(pCfgAcq->Backend.cfPeriod, &pCfgAcq->Props), pCfgAcq->Backend.cfPeriod)); 3101 3099 3102 if (pCfgAcq->Backend.cfPreBuf != pCfgReq->Backend.cfPreBuf) 3100 if ( pCfgReq->Backend.cfPreBuf 3101 && pCfgAcq->Backend.cfPreBuf != pCfgReq->Backend.cfPreBuf) 3102 { 3103 3103 LogRel2(("Audio: Pre-buffering size overwritten by backend for stream '%s' (now %RU64ms, %RU32 frames)\n", 3104 3104 pStream->szName, DrvAudioHlpFramesToMilli(pCfgAcq->Backend.cfPreBuf, &pCfgAcq->Props), pCfgAcq->Backend.cfPreBuf)); 3105 } 3106 else 3107 { 3108 LogRel2(("Audio: Pre-buffering is disabled for stream '%s'\n", pStream->szName)); 3109 pCfgAcq->Backend.cfPreBuf = 0; 3110 } 3105 3111 3106 3112 /* Sanity for detecting buggy backends. */
Note:
See TracChangeset
for help on using the changeset viewer.