VirtualBox

Changeset 89208 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 20, 2021 9:52:42 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144549
Message:

DrvAudio,pdmaudioifs.h: Reworked the DrvAudio locking. bugref:9890

File:
1 edited

Legend:

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

    r89184 r89208  
    231231
    232232#include <iprt/assertcompile.h>
     233#include <iprt/critsect.h>
    233234#include <iprt/circbuf.h>
    234235#include <iprt/list.h>
     
    995996typedef struct PDMAUDIOSTREAM
    996997{
     998    /** Critical section protecting the stream.
     999     *
     1000     * When not otherwise stated, DrvAudio will enter this before calling the
     1001     * backend.   The backend and device/mixer can normally safely enter it prior to
     1002     * a DrvAudio call, however not to pfnStreamDestroy, pfnStreamRelease or
     1003     * anything that may access the stream list.
     1004     *
     1005     * @note Lock ordering:
     1006     *          - After DRVAUDIO::CritSectGlobals.
     1007     *          - Before DRVAUDIO::CritSectHotPlug. */
     1008    RTCRITSECT              CritSect;
    9971009    /** Magic value (PDMAUDIOSTREAM_MAGIC). */
    9981010    uint32_t                uMagic;
     
    10171029
    10181030/** Magic value for PDMAUDIOSTREAM. */
    1019 #define PDMAUDIOSTREAM_MAGIC    PDM_VERSION_MAKE(0xa0d3, 4, 0)
     1031#define PDMAUDIOSTREAM_MAGIC    PDM_VERSION_MAKE(0xa0d3, 5, 0)
    10201032
    10211033
     
    12381250
    12391251/** PDMIAUDIOCONNECTOR interface ID. */
    1240 #define PDMIAUDIOCONNECTOR_IID                  "2c2bdfcd-7a2b-4739-9663-07ee9e8fe079"
     1252#define PDMIAUDIOCONNECTOR_IID                  "04ad443a-d860-443a-afc9-98bbad4b1341"
    12411253
    12421254
     
    14201432     *
    14211433     * @param   pInterface          Pointer to this interface.
    1422      * @param   pStream             Pointer to audio stream.
     1434     * @param   pStream             Pointer to audio stream (locked).
    14231435     * @param   pvUser              Backend specific parameter from the call to
    14241436     *                              PDMIHOSTAUDIOPORT::pfnNotifyDeviceChanged.
     
    15161528
    15171529/** PDMIHOSTAUDIO interface ID. */
    1518 #define PDMIHOSTAUDIO_IID                           "a5650399-be78-4e82-8115-e34a4450378c"
     1530#define PDMIHOSTAUDIO_IID                           "8c68a5a9-6c46-43c2-9d4e-e1bd13d2b97d"
    15191531
    15201532
     
    16011613
    16021614/** PDMIHOSTAUDIOPORT interface ID. */
    1603 #define PDMIHOSTAUDIOPORT_IID                    "c752404b-1ccb-4fc0-aa60-eb76ae130e0f"
     1615#define PDMIHOSTAUDIOPORT_IID                    "cd006383-7be1-4dbe-a69e-21236413cf30"
    16041616
    16051617/** @} */
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