VirtualBox

Ignore:
Timestamp:
Mar 8, 2021 5:50:57 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Preparing to move some of the DrvAudio.h stuff into PDM. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp

    r88009 r88022  
    999999        pCfgAcq->Backend.cFramesPreBuffering     = obt.threshold;
    10001000
    1001         pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * DrvAudioHlpBytesPerFrame(&pCfgAcq->Props);
     1001        pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props);
    10021002        pStreamALSA->pvBuf = RTMemAllocZ(pStreamALSA->cbBuf);
    10031003        if (!pStreamALSA->pvBuf)
     
    10391039        req.freq        = pCfgReq->Props.uHz;
    10401040        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. */
    10421042        req.buffer_size = req.period_size * 2; /** @todo Make this configurable. */
    10431043        req.threshold   = req.period_size;
     
    10591059        /* No pre-buffering. */
    10601060
    1061         pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * DrvAudioHlpBytesPerFrame(&pCfgAcq->Props);
     1061        pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props);
    10621062        pStreamALSA->pvBuf = RTMemAlloc(pStreamALSA->cbBuf);
    10631063        if (!pStreamALSA->pvBuf)
     
    15011501    Log2Func(("cFramesDelay=%RI32, enmState=%d, rc=%d\n", cFramesDelay, enmState, rc));
    15021502
    1503     return DrvAudioHlpFramesToBytes(&pStreamALSA->pCfg->Props, cFramesDelay);
     1503    return PDMAudioPropsFramesToBytes(&pStreamALSA->pCfg->Props, cFramesDelay);
    15041504}
    15051505
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette