MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / Close

Method Close

windows/APIExample/APIExample/dsound/DSoundRender.cpp:93–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void DSoundRender::Close()
94{
95 std::lock_guard<std::mutex> _(m_mutex);
96 if (m_pDSNotify)
97 {
98 m_pDSNotify->Release();
99 m_pDSNotify = nullptr;
100 }
101 if (m_pDSBuffer8)
102 {
103 m_pDSBuffer8->Release();
104 m_pDSBuffer8 = nullptr;
105 m_pDSBuffer = nullptr;
106 }
107 if (m_pDS)
108 {
109 m_pDS->Release();
110 m_pDS = nullptr;
111 }
112 for (int i = 0; i < MAX_AUDIO_BUF; i++) {
113 if (m_event[i])
114 CloseHandle(m_event[i]);
115 }
116}
117
118

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected