VirtualBox

Changeset 87876 in vbox


Ignore:
Timestamp:
Feb 25, 2021 4:39:28 PM (4 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Got rid of more big stack-allocated stuff [build fix]. ticketoem2ref:36

File:
1 edited

Legend:

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

    r87875 r87876  
    13551355
    13561356    uint8_t  *pvChunk = (uint8_t *)pThis->pvScratchBuf;
    1357     uint32_t  cbChunk = pThis->cbScratchBuf;
     1357    uint32_t  cbChunk = (uint32_t)pThis->cbScratchBuf;
    13581358
    13591359    while (cfLeft)
     
    14391439
    14401440    PPDMAUDIOFRAME paFrames = (PPDMAUDIOFRAME)pThis->pvScratchBuf;
    1441     const size_t    cFrames =                 pThis->cbScratchBuf / sizeof(PDMAUDIOFRAME);
     1441    const uint32_t  cFrames =                 pThis->cbScratchBuf / sizeof(PDMAUDIOFRAME);
    14421442
    14431443    uint32_t cfLeft = cfToPlay;
     
    17401740        uint32_t cbCaptured;
    17411741        rc = pThis->pHostDrvAudio->pfnStreamCapture(pThis->pHostDrvAudio, pStream->pvBackend,
    1742                                                     pThis->pvScratchBuf, RT_MIN(cbReadable, pThis->cbScratchBuf), &cbCaptured);
     1742                                                    pThis->pvScratchBuf, RT_MIN(cbReadable, (uint32_t)pThis->cbScratchBuf), &cbCaptured);
    17431743        if (RT_FAILURE(rc))
    17441744        {
     
    17511751        Assert(cbCaptured <= pThis->cbScratchBuf);
    17521752        if (cbCaptured > pThis->cbScratchBuf) /* Paranoia. */
    1753             cbCaptured = pThis->cbScratchBuf;
     1753            cbCaptured = (uint32_t)pThis->cbScratchBuf;
    17541754
    17551755        if (!cbCaptured) /* Nothing captured? Take a shortcut. */
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