VirtualBox

Changeset 89372 in vbox for trunk/include


Ignore:
Timestamp:
May 29, 2021 3:20:51 AM (4 years ago)
Author:
vboxsync
Message:

pdmaudioifs.h: Shut up warning in PDMAUDIOPCMPROPS_INITIALIZER. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r89348 r89372  
    683683/** Initializer for PDMAUDIOPCMPROPS. */
    684684#define PDMAUDIOPCMPROPS_INITIALIZER(a_cbSample, a_fSigned, a_cChannels, a_uHz, a_fSwapEndian) \
    685     { (a_cbSample) * (a_cChannels), PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(a_cbSample, a_cChannels), a_cbSample, a_cChannels, \
    686       a_fSigned, a_fSwapEndian, false /*fRaw*/, a_uHz }
     685    { (uint8_t)((a_cbSample) * (a_cChannels)), PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(a_cbSample, a_cChannels), \
     686      (uint8_t)(a_cbSample), (uint8_t)(a_cChannels), a_fSigned, a_fSwapEndian, false /*fRaw*/, a_uHz }
    687687/** Calculates the cShift value of given sample bits and audio channels.
    688688 * @note Does only support mono/stereo channels for now, for non-stereo/mono we
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