VirtualBox

Changeset 88718 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Apr 26, 2021 9:21:24 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144036
Message:

Audio: Changed PPDMAUDIOBACKENDSTREAM from opaque to a common base-structure which the backends can extend with their own data. bugref:9890

File:
1 edited

Legend:

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

    r88693 r88718  
    12201220
    12211221
    1222 /** Opque pointer host audio specific stream data.
    1223  * @todo r=bird: should extend this to a public part that at least includes a
    1224  *       PPDMAUDIOSTREAM member. */
    1225 typedef struct PDMAUDIOBACKENDSTREAM *PPDMAUDIOBACKENDSTREAM;
     1222/**
     1223 * Host audio backend specific stream data.
     1224 *
     1225 * The backend will put this as the first member of it's own data structure.
     1226 */
     1227typedef struct PDMAUDIOBACKENDSTREAM
     1228{
     1229    /** Magic value (PDMAUDIOBACKENDSTREAM_MAGIC). */
     1230    uint32_t            uMagic;
     1231    /** Explicit zero padding - do not touch! */
     1232    uint32_t            uReserved;
     1233    /** Pointer to the stream this backend data is associated with. */
     1234    PPDMAUDIOSTREAM     pStream;
     1235    /** Reserved for future use (zeroed) - do not touch. */
     1236    void               *apvReserved[2];
     1237} PDMAUDIOBACKENDSTREAM;
     1238/** Pointer to host audio specific stream data! */
     1239typedef PDMAUDIOBACKENDSTREAM *PPDMAUDIOBACKENDSTREAM;
     1240
     1241/** Magic value for PDMAUDIOBACKENDSTREAM. */
     1242#define PDMAUDIOBACKENDSTREAM_MAGIC PDM_VERSION_MAKE(0xa0d4, 1, 0)
     1243
    12261244
    12271245/** Pointer to a host audio interface. */
     
    13931411
    13941412/** PDMIHOSTAUDIO interface ID. */
    1395 #define PDMIHOSTAUDIO_IID                           "ccfd4020-1a41-4158-8c42-6f7c98f0aaa8"
     1413#define PDMIHOSTAUDIO_IID                           "109d8c74-dfed-4056-b5ad-022de4d249c2"
    13961414
    13971415
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette