VirtualBox

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/src/VBox/Devices/Audio/HDAStreamMap.h

    r71754 r75962  
    11/* $Id$ */
    22/** @file
    3  * HDAStreamMap.h - Stream mapping functions for HD Audio.
     3 * HDAStreamMap.h - Stream map functions for HD Audio.
    44 */
    55
    66/*
    7  * Copyright (C) 2017 Oracle Corporation
     7 * Copyright (C) 2017-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2222 * Structure for keeping an audio stream data mapping.
    2323 */
    24 typedef struct HDASTREAMMAPPING
     24typedef struct HDASTREAMMAP
    2525{
    2626    /** The stream's layout. */
    27     PDMAUDIOSTREAMLAYOUT              enmLayout;
    28     /** Number of audio channels in this stream. */
    29     uint8_t                           cChannels;
    30     /** Array of audio channels. */
    31     R3PTRTYPE(PPDMAUDIOSTREAMCHANNEL) paChannels;
     27    PDMAUDIOSTREAMLAYOUT               enmLayout;
     28    uint8_t                            cbFrameSize;
     29    /** Number of mappings in paMappings. */
     30    uint8_t                            cMappings;
     31    uint8_t                            aPadding[2];
     32    /** Array of stream mappings.
     33     *  Note: The mappings *must* be layed out in an increasing order, e.g.
     34     *        how the data appears in the given data block. */
     35    R3PTRTYPE(PPDMAUDIOSTREAMMAP)      paMappings;
     36#if HC_ARCH_BITS == 32
     37    RTR3PTR                            Padding1;
     38#endif
     39#ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND
    3240    /** Circular buffer holding for holding audio data for this mapping. */
    33     R3PTRTYPE(PRTCIRCBUF)             pCircBuf;
    34 } HDASTREAMMAPPING;
    35 AssertCompileSizeAlignment(HDASTREAMMAPPING, 8);
    36 typedef HDASTREAMMAPPING *PHDASTREAMMAPPING;
     41    R3PTRTYPE(PRTCIRCBUF)              pCircBuf;
     42#endif
     43} HDASTREAMMAP;
     44AssertCompileSizeAlignment(HDASTREAMMAP, 8);
     45typedef HDASTREAMMAP *PHDASTREAMMAP;
    3746
    3847/** @name Stream mapping functions.
     
    4049 */
    4150#ifdef IN_RING3
    42 int  hdaR3StreamMapInit(PHDASTREAMMAPPING pMapping, PPDMAUDIOPCMPROPS pProps);
    43 void hdaR3StreamMapDestroy(PHDASTREAMMAPPING pMapping);
    44 void hdaR3StreamMapReset(PHDASTREAMMAPPING pMapping);
     51int  hdaR3StreamMapInit(PHDASTREAMMAP pMapping, PPDMAUDIOPCMPROPS pProps);
     52void hdaR3StreamMapDestroy(PHDASTREAMMAP pMapping);
     53void hdaR3StreamMapReset(PHDASTREAMMAP pMapping);
    4554#endif /* IN_RING3 */
    4655/** @} */
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