VirtualBox

Changeset 89385 in vbox


Ignore:
Timestamp:
May 31, 2021 9:52:10 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Extended PDMAUDIOCHANNELID with PDMAUDIOCHANNELID_TOP_CENTER so we match the standard wav-file assignments. bugref:9890

File:
1 edited

Legend:

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

    r89381 r89385  
    539539    PDMAUDIOCHANNELID_UNKNOWN,
    540540
    541     /** Front left channel. */
    542     PDMAUDIOCHANNELID_FRONT_LEFT,
    543     /** Front right channel. */
     541    /** The first ID in the standard WAV-file assignment block. */
     542    PDMAUDIOCHANNELID_FIRST_STANDARD,
     543    /** Front left channel (FR). */
     544    PDMAUDIOCHANNELID_FRONT_LEFT = PDMAUDIOCHANNELID_FIRST_STANDARD,
     545    /** Front right channel (FR). */
    544546    PDMAUDIOCHANNELID_FRONT_RIGHT,
    545     /** Front center channel. */
     547    /** Front center channel (FC). */
    546548    PDMAUDIOCHANNELID_FRONT_CENTER,
    547549    /** Mono channel (alias for front center). */
     
    549551    /** Low frequency effects (subwoofer) channel. */
    550552    PDMAUDIOCHANNELID_LFE,
    551     /** Rear left channel. */
     553    /** Rear left channel (BL). */
    552554    PDMAUDIOCHANNELID_REAR_LEFT,
    553     /** Rear right channel. */
     555    /** Rear right channel (BR). */
    554556    PDMAUDIOCHANNELID_REAR_RIGHT,
    555     /** Front left of center channel. */
     557    /** Front left of center channel (FLC). */
    556558    PDMAUDIOCHANNELID_FRONT_LEFT_OF_CENTER,
    557     /** Front right of center channel. */
     559    /** Front right of center channel (FLR). */
    558560    PDMAUDIOCHANNELID_FRONT_RIGHT_OF_CENTER,
    559     /** Rear center channel. */
     561    /** Rear center channel (BC). */
    560562    PDMAUDIOCHANNELID_REAR_CENTER,
    561     /** Side left channel. */
     563    /** Side left channel (SL). */
    562564    PDMAUDIOCHANNELID_SIDE_LEFT,
    563     /** Side right channel. */
     565    /** Side right channel (SR). */
    564566    PDMAUDIOCHANNELID_SIDE_RIGHT,
    565     /** Front left height channel. */
     567    /** Top center (TC). */
     568    PDMAUDIOCHANNELID_TOP_CENTER,
     569    /** Front left height channel (TFL). */
    566570    PDMAUDIOCHANNELID_FRONT_LEFT_HEIGHT,
    567     /** Front center height channel. */
     571    /** Front center height channel (TFC). */
    568572    PDMAUDIOCHANNELID_FRONT_CENTER_HEIGHT,
    569     /** Front right height channel. */
     573    /** Front right height channel (TFR). */
    570574    PDMAUDIOCHANNELID_FRONT_RIGHT_HEIGHT,
    571     /** Rear left height channel. */
     575    /** Rear left height channel (TBL). */
    572576    PDMAUDIOCHANNELID_REAR_LEFT_HEIGHT,
    573     /** Rear center height channel. */
     577    /** Rear center height channel (TBC). */
    574578    PDMAUDIOCHANNELID_REAR_CENTER_HEIGHT,
    575     /** Rear right height channel. */
     579    /** Rear right height channel (TBR). */
    576580    PDMAUDIOCHANNELID_REAR_RIGHT_HEIGHT,
     581    /** The end of the standard WAV-file assignment block. */
     582    PDMAUDIOCHANNELID_END_STANDARD,
    577583
    578584    /** End of valid values. */
    579     PDMAUDIOCHANNELID_END,
     585    PDMAUDIOCHANNELID_END = PDMAUDIOCHANNELID_END_STANDARD,
    580586    /** Hack to blow the type up to 32-bit. */
    581587    PDMAUDIOCHANNELID_32BIT_HACK = 0x7fffffff
    582588} PDMAUDIOCHANNELID;
     589AssertCompile(PDMAUDIOCHANNELID_FRONT_LEFT - PDMAUDIOCHANNELID_FIRST_STANDARD == 0);
     590AssertCompile(PDMAUDIOCHANNELID_LFE - PDMAUDIOCHANNELID_FIRST_STANDARD == 3);
     591AssertCompile(PDMAUDIOCHANNELID_REAR_CENTER - PDMAUDIOCHANNELID_FIRST_STANDARD == 8);
     592AssertCompile(PDMAUDIOCHANNELID_REAR_RIGHT_HEIGHT - PDMAUDIOCHANNELID_FIRST_STANDARD == 17);
    583593
    584594/**
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