VirtualBox

Changeset 88442 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 9, 2021 5:20:15 PM (4 years ago)
Author:
vboxsync
Message:

DrvHostAudioAlsa: Set no input pre-buffering as per comment.. bugref:9890

File:
1 edited

Legend:

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

    r88432 r88442  
    324324 * @param   pCfgReq Requested configuration to set.
    325325 * @param   pCfgObt Obtained configuration on success. Might differ from
    326  *                       requested configuration.
     326 *                  requested configuration.
    327327 */
    328328static int alsaStreamSetHwParams(snd_pcm_t *phPCM, PALSAAUDIOSTREAMCFG pCfgReq, PALSAAUDIOSTREAMCFG pCfgObt)
     
    408408    pCfgObt->fmt     = pCfgReq->fmt;
    409409
    410     LogRel2(("ALSA: HW params: %u Hz, %ul frames period, %ul frames buffer, %u channel(s), fmt=%d, access=%d\n",
     410    LogRel2(("ALSA: HW params: %u Hz, %lu frames period, %lu frames buffer, %u channel(s), fmt=%d, access=%d\n",
    411411             pCfgObt->freq, pCfgObt->period_size, pCfgObt->buffer_size, pCfgObt->nchannels, pCfgObt->fmt, pCfgObt->access));
    412412    return 0;
     
    747747                    cbToWrite = cbBuf;
    748748
    749                 /*
    750                  * Now we copy the stuff into our scratch buffer for some
    751                  * totally unexplained reason.
    752                  */
     749                /* Now we copy the stuff into our scratch buffer for some totally unexplained reason. */
    753750                memcpy(pStreamALSA->pvBuf, pvBuf, cbToWrite);
    754751
     
    965962        pCfgAcq->Backend.cFramesPeriod     = obt.period_size;
    966963        pCfgAcq->Backend.cFramesBufferSize = obt.buffer_size;
    967         /* No pre-buffering. */
     964        pCfgAcq->Backend.cFramesPreBuffering = 0; /* No pre-buffering. */
    968965
    969966        pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props);
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