VirtualBox

Changeset 82463 in vbox for trunk/include


Ignore:
Timestamp:
Dec 6, 2019 2:29:16 PM (5 years ago)
Author:
vboxsync
Message:

pdmaudioifs.h,Devices/Audio: Corrected the size alignment of PDMAUDIOSTREAMCFG to 8 bytes. bugref:9218

File:
1 edited

Legend:

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

    r82261 r82463  
    627627
    628628/**
    629  * Structure for mapping a single (mono) channel or dual (stereo) channels onto
    630  * an audio stream (aka stream profile).
    631  *
    632  * An audio stream consists of one or multiple channels (e.g. 1 for mono, 2 for
    633  * stereo), depending on the configuration.
     629 * Mappings channels onto an audio stream.
     630 *
     631 * The mappings are either for a single (mono) or dual (stereo) channels onto an
     632 * audio stream (aka stream profile).  An audio stream consists of one or
     633 * multiple channels (e.g. 1 for mono, 2 for stereo), depending on the
     634 * configuration.
    634635 */
    635636typedef struct PDMAUDIOSTREAMMAP
     
    637638    /** Array of channel IDs being handled.
    638639     * @note The first (zero-based) index specifies the leftmost channel. */
    639     PDMAUDIOSTREAMCHANNELID     aID[2];
     640    PDMAUDIOSTREAMCHANNELID     aenmIDs[2];
    640641    /** Step size (in bytes) to the channel's next frame. */
    641642    uint32_t                    cbStep;
     
    701702
    702703/**
    703  * Structure for keeping an audio stream configuration.
     704 * An audio stream configuration.
    704705 */
    705706typedef struct PDMAUDIOSTREAMCFG
     
    751752        uint32_t            cFramesPreBuffering;
    752753    } Backend;
     754    uint32_t                u32Padding;
    753755    /** Friendly name of the stream. */
    754756    char                    szName[64];
    755757} PDMAUDIOSTREAMCFG;
    756 AssertCompileSizeAlignment(PDMAUDIOPCMPROPS, 8);
     758AssertCompileSizeAlignment(PDMAUDIOSTREAMCFG, 8);
    757759/** Pointer to audio stream configuration keeper. */
    758760typedef PDMAUDIOSTREAMCFG *PPDMAUDIOSTREAMCFG;
     
    12001202
    12011203/**
    1202  * Structure for maintaining an input/output audio stream.
     1204 * An input or output audio stream.
    12031205 */
    12041206typedef struct PDMAUDIOSTREAM
     
    12491251
    12501252/**
    1251  * Enumeration for an audio callback source.
     1253 * Audio callback source.
    12521254 */
    12531255typedef enum PDMAUDIOCBSOURCE
    12541256{
    12551257    /** Invalid, do not use. */
    1256     PDMAUDIOCBSOURCE_INVALID    = 0,
     1258    PDMAUDIOCBSOURCE_INVALID = 0,
    12571259    /** Device emulation. */
    12581260    PDMAUDIOCBSOURCE_DEVICE,
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