VirtualBox

Changeset 88861 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 4, 2021 4:00:36 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144195
Message:

DrvAudio,DrvHostAudioWasApi: Implemented the smoother default device changing. Added a PDMIHOSTAUDIOPORT::pfnStreamNotifyPreparingDeviceSwitch to explicitly tell DrvAudio about PDMAUDIOSTREAM_STS_PREPARING_SWITCH being set, rather than polling for it in the play function. Fixed a cache purge at power-off race in the destructor (WasApi). bugref:9890

File:
1 edited

Legend:

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

    r88819 r88861  
    15511551
    15521552    /**
     1553     * Notification that the stream is about to change device in a bit.
     1554     *
     1555     * This will assume PDMAUDIOSTREAM_STS_PREPARING_SWITCH will be set when
     1556     * PDMIHOSTAUDIO::pfnStreamGetStatus is next called and change the stream state
     1557     * accordingly.
     1558     *
     1559     * @param   pInterface  Pointer to this interface.
     1560     * @param   pStream     The stream that changed device (backend variant).
     1561     */
     1562    DECLR3CALLBACKMEMBER(void, pfnStreamNotifyPreparingDeviceSwitch,(PPDMIHOSTAUDIOPORT pInterface,
     1563                                                                     PPDMAUDIOBACKENDSTREAM pStream));
     1564
     1565    /**
    15531566     * The stream has changed its device and left the
    1554      * PDMAUDIOSTREAM_STS_PREPARING_SWITCH state.
     1567     * PDMAUDIOSTREAM_STS_PREPARING_SWITCH state (if it entered it at all).
    15551568     *
    15561569     * @param   pInterface  Pointer to this interface.
     
    15761589
    15771590/** PDMIHOSTAUDIOPORT interface ID. */
    1578 #define PDMIHOSTAUDIOPORT_IID                    "4d513a11-5be1-4f6f-9a06-a2f628cf67ac"
     1591#define PDMIHOSTAUDIOPORT_IID                    "1aa566e2-b3df-4b8a-9f80-99bdcb5e9964"
    15791592
    15801593/** @} */
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