VirtualBox

Changeset 88630 in vbox


Ignore:
Timestamp:
Apr 21, 2021 11:14:02 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143933
Message:

DrvHostAudioWasApi: More WASAPI backend work. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp

    r88629 r88630  
    147147    /** Pointer to the MM notification client instance. */
    148148    DrvHostAudioWasMmNotifyClient  *pNotifyClient;
    149     /** Serializing notifications and pre-activation. */
    150     RTCRITSECT                      CritSectNotify;
    151149} DRVHOSTAUDIOWAS;
    152150/** Pointer to the data for a WASAPI host audio driver instance. */
     
    17061704    if (pThis->pNotifyClient)
    17071705    {
    1708         Assert(RTCritSectIsInitialized(&pThis->CritSectNotify));
    1709         Assert(pThis->pIEnumerator);
    1710 
    1711         RTCritSectEnter(&pThis->CritSectNotify);
    17121706        pThis->pNotifyClient->notifyDriverDestroyed();
    1713         RTCritSectLeave(&pThis->CritSectNotify);
    1714 
    17151707        pThis->pIEnumerator->UnregisterEndpointNotificationCallback(pThis->pNotifyClient);
    1716 
    17171708        pThis->pNotifyClient->Release();
    17181709    }
     
    17241715        CoUninitialize();
    17251716    }
    1726 
    1727     if (RTCritSectIsInitialized(&pThis->CritSectNotify))
    1728         RTCritSectDelete(&pThis->CritSectNotify);
    17291717
    17301718    if (RTCritSectRwIsInitialized(&pThis->CritSectList))
     
    17771765
    17781766    /*
    1779      * Initialize the critical sections early as we use one of them for serializing
    1780      * the notification client de-registration.
     1767     * Initialize the critical section early.
    17811768     */
    17821769    int rc = RTCritSectRwInit(&pThis->CritSectList);
    1783     AssertRCReturn(rc, rc);
    1784 
    1785     rc = RTCritSectInit(&pThis->CritSectNotify);
    17861770    AssertRCReturn(rc, rc);
    17871771
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette