VirtualBox

Changeset 75962 in vbox for trunk/include


Ignore:
Timestamp:
Dec 5, 2018 9:34:58 AM (6 years ago)
Author:
vboxsync
Message:

Forward ported r127158 (Audio/HDA: Implemented support for Windows 10 Build 1809 default surround speaker setup) + build fixes (r127159, r127160, r127162, r127165, r127167).

File:
1 edited

Legend:

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

    r74507 r75962  
    471471    /** Circular buffer for the channel data. */
    472472    PRTCIRCBUF pCircBuf;
     473    /** Amount of audio data (in bytes) acquired for reading. */
    473474    size_t     cbAcq;
    474475    /** Channel data flags. */
     
    477478
    478479/**
    479  * Structure for a single channel of an audio stream.
    480  * An audio stream consists of one or multiple channels,
     480 * Enumeration for standard speaker channel IDs.
     481 * This can cover up to 11.0 surround sound.
     482 *
     483 * Note: Any of those channels can be marked / used as the LFE channel (played through the subwoofer).
     484 */
     485typedef enum PDMAUDIOSTREAMCHANNELID
     486{
     487    /** Unknown / not set channel ID. */
     488    PDMAUDIOSTREAMCHANNELID_UNKNOWN = 0,
     489    /** Front left channel. */
     490    PDMAUDIOSTREAMCHANNELID_FRONT_LEFT,
     491    /** Front right channel. */
     492    PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT,
     493    /** Front center channel. */
     494    PDMAUDIOSTREAMCHANNELID_FRONT_CENTER,
     495    /** Low frequency effects (subwoofer) channel. */
     496    PDMAUDIOSTREAMCHANNELID_LFE,
     497    /** Rear left channel. */
     498    PDMAUDIOSTREAMCHANNELID_REAR_LEFT,
     499    /** Rear right channel. */
     500    PDMAUDIOSTREAMCHANNELID_REAR_RIGHT,
     501    /** Front left of center channel. */
     502    PDMAUDIOSTREAMCHANNELID_FRONT_LEFT_OF_CENTER,
     503    /** Front right of center channel. */
     504    PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT_OF_CENTER,
     505    /** Rear center channel. */
     506    PDMAUDIOSTREAMCHANNELID_REAR_CENTER,
     507    /** Side left channel. */
     508    PDMAUDIOSTREAMCHANNELID_SIDE_LEFT,
     509    /** Side right channel. */
     510    PDMAUDIOSTREAMCHANNELID_SIDE_RIGHT,
     511    /** Left height channel. */
     512    PDMAUDIOSTREAMCHANNELID_LEFT_HEIGHT,
     513    /** Right height channel. */
     514    PDMAUDIOSTREAMCHANNELID_RIGHT_HEIGHT,
     515    /** Hack to blow the type up to 32-bit. */
     516    PDMAUDIOSTREAMCHANNELID_32BIT_HACK = 0x7fffffff
     517} PDMAUDIOSTREAMCHANNELID;
     518
     519/**
     520 * Structure for mapping a single (mono) channel or dual (stereo) channels of an audio stream (aka stream profile).
     521 *
     522 * An audio stream consists of one or multiple channels (e.g. 1 for mono, 2 for stereo),
    481523 * depending on the configuration.
    482524 */
    483 typedef struct PDMAUDIOSTREAMCHANNEL
    484 {
    485     /** Channel ID. */
    486     uint8_t                   uChannel;
     525typedef struct PDMAUDIOSTREAMMAP
     526{
     527    /** Array of channel IDs being handled.
     528     *  Note: The first (zero-based) index specifies the leftmost channel. */
     529    PDMAUDIOSTREAMCHANNELID    aID[2];
    487530    /** Step size (in bytes) to the channel's next frame. */
    488     size_t                    cbStep;
     531    size_t                     cbSize;
    489532    /** Frame size (in bytes) of this channel. */
    490     size_t                    cbFrame;
     533    size_t                     cbFrame;
    491534    /** Offset (in bytes) to first frame in the data block. */
    492     size_t                    cbFirst;
    493     /** Currente offset (in bytes) in the data stream. */
    494     size_t                    cbOff;
     535    size_t                     cbFirst;
     536    /** Offset (in bytes) to the next frame in the data block. */
     537    size_t                     cbOff;
    495538    /** Associated data buffer. */
    496     PDMAUDIOSTREAMCHANNELDATA Data;
    497 } PDMAUDIOSTREAMCHANNEL, *PPDMAUDIOSTREAMCHANNEL;
     539    PDMAUDIOSTREAMCHANNELDATA  Data;
     540} PDMAUDIOSTREAMMAP, *PPDMAUDIOSTREAMMAP;
    498541
    499542/**
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