VirtualBox

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


Ignore:
Timestamp:
Mar 9, 2021 3:33:52 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Adding a magic to PDMAUDIOSTREAM. bugref:9890

File:
1 edited

Legend:

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

    r88057 r88059  
    12441244typedef struct PDMAUDIOSTREAM *PPDMAUDIOSTREAMCTX;
    12451245
     1246/** @name PDMAUDIOSTREAM_WARN_FLAGS_XXX
     1247 * @{ */
    12461248/** No stream warning flags set. */
    12471249#define PDMAUDIOSTREAM_WARN_FLAGS_NONE          0
    12481250/** Warned about a disabled stream. */
    12491251#define PDMAUDIOSTREAM_WARN_FLAGS_DISABLED      RT_BIT(0)
     1252/** @} */
    12501253
    12511254/**
     
    12541257typedef struct PDMAUDIOSTREAM
    12551258{
    1256     /** List node.
    1257      * @todo s/Node/ListEntry/ */
    1258     RTLISTNODE              Node;
    1259     /** @todo add magic (some jazz pianist). */
     1259    /** Magic value (PDMAUDIOSTREAM_MAGIC). */
     1260    uint32_t                uMagic;
     1261    /** Size (in bytes) of the backend-specific stream data. */
     1262    uint32_t                cbBackend;
     1263    /** List entry (some DrvAudio internal list). */
     1264    RTLISTNODE              ListEntry;
    12601265    /** Number of references to this stream.
    12611266     *  Only can be destroyed when the reference count reaches 0. */
     
    12641269    uint32_t                cTriesReInit;
    12651270    /** Warnings shown already in the release log.
    1266      *  See PDMAUDIOSTREAM_WARN_FLAGS_XXX defines. */
     1271     *  See PDMAUDIOSTREAM_WARN_FLAGS_XXX. */
    12671272    uint32_t                fWarningsShown;
    12681273    /** Stream status flag. */
     
    12951300     *  That way the backends do not have access to the audio connector's data. */
    12961301    void                   *pvBackend;
    1297     /** Size (in bytes) of the backend-specific stream data. */
    1298     size_t                  cbBackend;
    12991302
    13001303    /** Name of this stream. */
     
    13081311    } RT_UNION_NM(u);
    13091312} PDMAUDIOSTREAM;
     1313
     1314/** Magic value for PDMAUDIOSTREAM. (Ahmad Jamal)   */
     1315#define PDMAUDIOSTREAM_MAGIC    UINT32_C(0x19300702)
    13101316
    13111317
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