- Timestamp:
- Jan 9, 2019 10:06:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r76726 r76727 2995 2995 pCfgReq->Backend.cfPeriod = DrvAudioHlpMilliToFrames(pDrvCfg->uPeriodSizeMs, &pCfgReq->Props); 2996 2996 else /* Set default period size. */ 2997 pCfgReq->Backend.cfPeriod = DrvAudioHlpMilliToFrames( 20 /* ms */, &pCfgReq->Props);2997 pCfgReq->Backend.cfPeriod = DrvAudioHlpMilliToFrames(50 /* ms */, &pCfgReq->Props); 2998 2998 2999 2999 LogRel2(("Audio: Using %s period size (%RU64ms, %RU32 frames) for stream '%s'\n", … … 3007 3007 pCfgReq->Backend.cfBufferSize = DrvAudioHlpMilliToFrames(pDrvCfg->uBufferSizeMs, &pCfgReq->Props); 3008 3008 else /* Set default buffer size. */ 3009 pCfgReq->Backend.cfBufferSize = DrvAudioHlpMilliToFrames( 100 /* ms */, &pCfgReq->Props);3009 pCfgReq->Backend.cfBufferSize = DrvAudioHlpMilliToFrames(250 /* ms */, &pCfgReq->Props); 3010 3010 3011 3011 LogRel2(("Audio: Using %s buffer size (%RU64ms, %RU32 frames) for stream '%s'\n", … … 3023 3023 } 3024 3024 else /* Set default pre-buffering size. */ 3025 pCfgReq->Backend.cfPreBuf = pCfgReq->Backend.cfPeriod * 2; 3025 { 3026 /* For pre-buffering to finish the buffer at least must be full one time. */ 3027 pCfgReq->Backend.cfPreBuf = pCfgReq->Backend.cfBufferSize; 3028 } 3026 3029 3027 3030 LogRel2(("Audio: Using %s pre-buffering size (%RU64ms, %RU32 frames) for stream '%s'\n", … … 3099 3102 ("Acquired period size must be smaller than buffer size\n"), 3100 3103 VERR_INVALID_PARAMETER); 3101 AssertMsgReturn(pCfgAcq->Backend.cfPreBuf < pCfgAcq->Backend.cfBufferSize,3102 ("Acquired pre-buffering size must be smaller than buffer size -- this otherwise will lead to buffer overruns\n"),3104 AssertMsgReturn(pCfgAcq->Backend.cfPreBuf <= pCfgAcq->Backend.cfBufferSize, 3105 ("Acquired pre-buffering size must be smaller or as big as the buffer size\n"), 3103 3106 VERR_INVALID_PARAMETER); 3104 3107
Note:
See TracChangeset
for help on using the changeset viewer.