Changeset 88022 in vbox for trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
- Timestamp:
- Mar 8, 2021 5:50:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r88009 r88022 999 999 pCfgAcq->Backend.cFramesPreBuffering = obt.threshold; 1000 1000 1001 pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * DrvAudioHlpBytesPerFrame(&pCfgAcq->Props);1001 pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props); 1002 1002 pStreamALSA->pvBuf = RTMemAllocZ(pStreamALSA->cbBuf); 1003 1003 if (!pStreamALSA->pvBuf) … … 1039 1039 req.freq = pCfgReq->Props.uHz; 1040 1040 req.nchannels = pCfgReq->Props.cChannels; 1041 req.period_size = DrvAudioHlpMilliToFrames(&pCfgReq->Props, 50 /*ms*/); /** @todo Make this configurable. */1041 req.period_size = PDMAudioPropsMilliToFrames(&pCfgReq->Props, 50 /*ms*/); /** @todo Make this configurable. */ 1042 1042 req.buffer_size = req.period_size * 2; /** @todo Make this configurable. */ 1043 1043 req.threshold = req.period_size; … … 1059 1059 /* No pre-buffering. */ 1060 1060 1061 pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * DrvAudioHlpBytesPerFrame(&pCfgAcq->Props);1061 pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props); 1062 1062 pStreamALSA->pvBuf = RTMemAlloc(pStreamALSA->cbBuf); 1063 1063 if (!pStreamALSA->pvBuf) … … 1501 1501 Log2Func(("cFramesDelay=%RI32, enmState=%d, rc=%d\n", cFramesDelay, enmState, rc)); 1502 1502 1503 return DrvAudioHlpFramesToBytes(&pStreamALSA->pCfg->Props, cFramesDelay);1503 return PDMAudioPropsFramesToBytes(&pStreamALSA->pCfg->Props, cFramesDelay); 1504 1504 } 1505 1505
Note:
See TracChangeset
for help on using the changeset viewer.