VirtualBox

Changeset 89213 in vbox for trunk/include


Ignore:
Timestamp:
May 21, 2021 10:00:12 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Added an fImmediate indicator to the pfnStreamDestroy methods so the backend knows whether it's okay to continue draining the stream or if it must be destroyed without delay. The latter is typically only for shutdown and driver plumbing. This helps quite a bit for HDA/CoreAudio/knoppix. bugref:9890

File:
1 edited

Legend:

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

    r89208 r89213  
    11211121     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    11221122     * @param   pStream         Pointer to audio stream.
    1123      */
    1124     DECLR3CALLBACKMEMBER(int, pfnStreamDestroy, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream));
     1123     * @param   fImmediate      Whether to immdiately stop and destroy a draining
     1124     *                          stream (@c true), or to allow it to complete
     1125     *                          draining first (@c false) if that's feasable.
     1126     *                          The latter depends on the draining stage and what
     1127     *                          the backend is capable of.
     1128     */
     1129    DECLR3CALLBACKMEMBER(int, pfnStreamDestroy, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream, bool fImmediate));
    11251130
    11261131    /**
     
    12501255
    12511256/** PDMIAUDIOCONNECTOR interface ID. */
    1252 #define PDMIAUDIOCONNECTOR_IID                  "04ad443a-d860-443a-afc9-98bbad4b1341"
     1257#define PDMIAUDIOCONNECTOR_IID                  "69d01cd1-df73-48db-86f4-2f97519ac585"
    12531258
    12541259
     
    14201425     *
    14211426     * @returns VBox status code.
    1422      * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    1423      * @param   pStream             Pointer to audio stream.
    1424      */
    1425     DECLR3CALLBACKMEMBER(int, pfnStreamDestroy, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
     1427     * @param   pInterface  Pointer to the interface containing the called function.
     1428     * @param   pStream     Pointer to audio stream.
     1429     * @param   fImmediate  Whether to immdiately stop and destroy a draining
     1430     *                      stream (@c true), or to allow it to complete
     1431     *                      draining first (@c false) if that's feasable.
     1432     */
     1433    DECLR3CALLBACKMEMBER(int, pfnStreamDestroy, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, bool fImmediate));
    14261434
    14271435    /**
     
    15281536
    15291537/** PDMIHOSTAUDIO interface ID. */
    1530 #define PDMIHOSTAUDIO_IID                           "8c68a5a9-6c46-43c2-9d4e-e1bd13d2b97d"
     1538#define PDMIHOSTAUDIO_IID                           "cd27862d-9aa2-4270-876e-7d660b87ecd3"
    15311539
    15321540
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