VirtualBox

Changeset 73701 in vbox


Ignore:
Timestamp:
Aug 16, 2018 7:38:13 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudioCommon.cpp: The default is Little Endian in DrvAudioHlpClearBuf().

File:
1 edited

Legend:

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

    r73545 r73701  
    152152        RT_BZERO(pvBuf, cbToClear);
    153153    }
    154     else
     154    else /* Unsigned formats. */
    155155    {
    156156        switch (pPCMProps->cBytes)
     
    165165            {
    166166                uint16_t *p = (uint16_t *)pvBuf;
    167                 uint16_t  s = 0x8000;
     167                uint16_t  s = 0x0080;
    168168
    169169                for (uint32_t i = 0; i < DrvAudioHlpBytesToFrames((uint32_t)cbToClear, pPCMProps); i++)
     
    178178            {
    179179                uint32_t *p = (uint32_t *)pvBuf;
    180                 uint32_t  s = 0x80000000;
     180                uint32_t  s = 0x00000080;
    181181
    182182                for (uint32_t i = 0; i < DrvAudioHlpBytesToFrames((uint32_t)cbToClear, pPCMProps); i++)
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