diff options
author | xegineering <me@xegineering.eu> | 2024-12-11 20:03:29 +0100 |
---|---|---|
committer | xegineering <me@xegineering.eu> | 2024-12-15 12:36:51 +0100 |
commit | ca5ebc8a795114a72f4410f05b2270f24ead1d60 (patch) | |
tree | 5ca901ebc8365909e4fd2ec11a4cf1ff114f149d /soundbox/pipewire-binding.h | |
parent | 62d3045df3283872628b0b8b8a8caeef1c226dfa (diff) | |
download | soundbox-go-ca5ebc8a795114a72f4410f05b2270f24ead1d60.tar soundbox-go-ca5ebc8a795114a72f4410f05b2270f24ead1d60.tar.zst soundbox-go-ca5ebc8a795114a72f4410f05b2270f24ead1d60.zip |
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.
Diffstat (limited to 'soundbox/pipewire-binding.h')
-rw-r--r-- | soundbox/pipewire-binding.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stddef.h> 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 |