MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / close

Method close

src/core/PipeWireNativeRxSource.cpp:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void PipeWireNativeRxSource::close()
178{
179 if (m_stream) {
180 auto& ctx = PipeWireNativeContext::instance();
181 ctx.lock();
182 pw_stream_disconnect(m_stream);
183 pw_stream_destroy(m_stream);
184 m_stream = nullptr;
185 ctx.unlock();
186 }
187 if (m_contextAcquired) {
188 PipeWireNativeContext::instance().release();
189 m_contextAcquired = false;
190 }
191}
192
193void PipeWireNativeRxSource::feedAudio(const float* samples, uint32_t count)
194{

Callers

nothing calls this directly

Calls 3

lockMethod · 0.80
unlockMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected