VirtualBox

Changeset 70193 in vbox


Ignore:
Timestamp:
Dec 18, 2017 1:37:11 PM (7 years ago)
Author:
vboxsync
Message:

Audio/pdmaudiifs.h: Fixed PDMAUDIOPCMPROPS_MAKE_SHIFT.

File:
1 edited

Legend:

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

    r70073 r70193  
    494494 *  Note: Does only support mono/stereo channels for now. */
    495495#define PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(cBits, cChannels)     ((cChannels == 2) + (cBits / 16))
    496 /** Calculates the cShift value of a PDMAUDIOPCMPROPS structure.
    497  *  Note: Does only support mono/stereo channels for now. */
    498 #define PDMAUDIOPCMPROPS_MAKE_SHIFT(pProps)                     PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS((pProps)->cChannels == 2) + (pProps)->cBits / 16)
     496/** Calculates the cShift value of a PDMAUDIOPCMPROPS structure. */
     497#define PDMAUDIOPCMPROPS_MAKE_SHIFT(pProps)                     PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS((pProps)->cBits, (pProps)->cChannels)
    499498/** Converts (audio) frames to bytes.
    500499 *  Needs the cShift value set correctly, using PDMAUDIOPCMPROPS_MAKE_SHIFT. */
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