From ca5ebc8a795114a72f4410f05b2270f24ead1d60 Mon Sep 17 00:00:00 2001 From: xegineering Date: Wed, 11 Dec 2024 20:03:29 +0100 Subject: pipewire: Implement capture tear-down This closes the PipeWire process properly to not leak memory and remove the PipeWire capture node of soundbox as soon as the context passed to StreamPipewireContext() is closed. --- soundbox/pipewire-binding.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'soundbox/pipewire-binding.h') diff --git a/soundbox/pipewire-binding.h b/soundbox/pipewire-binding.h index d25a0b9..58ee93a 100644 --- a/soundbox/pipewire-binding.h +++ b/soundbox/pipewire-binding.h @@ -5,6 +5,9 @@ #include extern void goHandleData(int16_t *, size_t); -void pw_stdout(void); + +void *pw_go_capture_init(void); +void pw_go_capture_run(void *); +void pw_go_capture_deinit(void *); #endif // !PIPEWIRE_BINDING_H -- cgit v1.2.3-70-g09d2