VirtualBox

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


Ignore:
Timestamp:
Jan 6, 2023 7:13:36 PM (2 years ago)
Author:
vboxsync
Message:

AudioMixbuffer: Three warnings about using int8_t for indexing, changed these to intptr_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioMixBuffer-Convert.cpp.h

    r96407 r98017  
    6161        while (idxDst-- > 0)
    6262        {
    63             int8_t idxSrc = pState->aidxChannelMap[idxDst];
     63            intptr_t idxSrc = pState->aidxChannelMap[idxDst];
    6464            if (idxSrc >= 0)
    6565                pDst[idxDst] = RT_CONCAT(audioMixBufSampleTo,a_Name)(pi32Src[idxSrc]);
     
    147147        while (idxDst-- > 0)
    148148        {
    149             int8_t idxSrc = pState->aidxChannelMap[idxDst];
     149            intptr_t idxSrc = pState->aidxChannelMap[idxDst];
    150150            if (idxSrc >= 0)
    151151                pi32Dst[idxDst] = RT_CONCAT(audioMixBufSampleFrom,a_Name)(pSrc[idxSrc]);
     
    235235        while (idxDst-- > 0)
    236236        {
    237             int8_t idxSrc = pState->aidxChannelMap[idxDst];
     237            intptr_t idxSrc = pState->aidxChannelMap[idxDst];
    238238            if (idxSrc >= 0)
    239239                audioMixBufBlendSample(&pi32Dst[idxDst], RT_CONCAT(audioMixBufSampleFrom,a_Name)(pSrc[idxSrc]));
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