VirtualBox

Changeset 89381 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 30, 2021 8:58:13 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Extended PDMAUDIOPCMPROPS with a channel map. Renamed PDMAUDIOSTREAMCHANNELID to PDMAUDIOCHANNELID and added a few items. PDMAudioPropsInit, PDMAudioPropsInitEx and (to a lesser degree) PDMAUDIOPCMPROPS_INITIALIZER will provide sensible default mappings. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHdaStream.h

    r89379 r89381  
    158158    uint32_t                idxScheduleLoop;
    159159
    160     uint64_t                u64Padding;
    161160    /** Buffer descriptors and additional timer scheduling state.
    162161     * (Same as HDABDLEDESC, with more sensible naming.)  */
     
    246245
    247246    /** Pad the structure size to a 64 byte alignment. */
    248     uint64_t                    au64Padding1[4];
     247    uint64_t                    au64Padding1[2];
    249248    /** Critical section for serialize access to the stream state between the async
    250249     * I/O thread and (basically) the guest. */
     
    312311    /** Debug bits. */
    313312    HDASTREAMDEBUG              Dbg;
    314     uint64_t                    au64Alignment[1];
     313    uint64_t                    au64Alignment[6];
    315314} HDASTREAMR3;
    316315AssertCompileSizeAlignment(HDASTREAMR3, 64);
  • trunk/src/VBox/Devices/Audio/DevHdaStreamMap.cpp

    r89379 r89381  
    295295        {
    296296            PPDMAUDIOSTREAMMAP pMapLR = &pMap->paMappings[0];
    297             pMapLR->aenmIDs[0]  = PDMAUDIOSTREAMCHANNELID_FRONT_LEFT;
    298             pMapLR->aenmIDs[1]  = PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT;
     297            pMapLR->aenmIDs[0]  = PDMAUDIOCHANNELID_FRONT_LEFT;
     298            pMapLR->aenmIDs[1]  = PDMAUDIOCHANNELID_FRONT_RIGHT;
    299299            pMapLR->cbFrame     = PDMAudioPropsFrameSize(pProps);
    300300            pMapLR->cbStep      = PDMAudioPropsSampleSize(pProps) * 2 /* Front left + Front right channels */;
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