VirtualBox

Ignore:
Timestamp:
May 4, 2021 8:47:13 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Reworking PDMIHOSTAUDIOPORT::pfnNotifyDevicesChanged a little, from now on it will only trigger re-enumeration (darwin still needs some adjusting). Use a timer to sligtly delay the enumeration and move it out of the re-init stream code, so that we don't redo it too frequently and that we do it even when there are active streams around. Made DrvHostAudioWasApi call pfnNotifyDevicesChanged. Reduced the DSound notification client code a little while adding pfnNotifyDeviceChanged calls to it. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioDSoundMMNotifClient.h

    r88819 r88853  
    4343public:
    4444
    45     DrvHostAudioDSoundMMNotifClient(PPDMIHOSTAUDIOPORT pInterface);
     45    DrvHostAudioDSoundMMNotifClient(PPDMIHOSTAUDIOPORT pInterface, bool fDefaultIn, bool fDefaultOut);
    4646    virtual ~DrvHostAudioDSoundMMNotifClient();
    4747
     
    5858private:
    5959
     60    bool                        m_fDefaultIn;
     61    bool                        m_fDefaultOut;
    6062    bool                        m_fRegisteredClient;
    6163    IMMDeviceEnumerator        *m_pEnum;
     
    6466    long                        m_cRef;
    6567
    66     PPDMIHOSTAUDIOPORT           m_pIAudioNotifyFromHost;
    67 
    68     HRESULT AttachToDefaultEndpoint();
    69     void    DetachFromEndpoint();
    70 
    71     void    doCallback(void);
     68    PPDMIHOSTAUDIOPORT          m_pIAudioNotifyFromHost;
    7269
    7370    /** @name IMMNotificationClient interface
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