PipeWire: Finish work on removing the SPA dependency.

This commit is contained in:
David Reid
2025-12-31 18:18:17 +10:00
parent e1dfc9d77f
commit 114b9594c1
2 changed files with 196 additions and 60 deletions
@@ -1,23 +1,3 @@
/*
The PipeWire backend depends on the libspa development packages. On Debian-based distributions,
this can be installed with:
sudo apt install libspa-0.2-dev
If using Ubuntu, this may install it in a "spa-0.2" subfolder. In this case, you might need
to add the following to your build command:
-I/usr/include/spa-0.2
Unfortunately PipeWire has a hard dependency on the above package, and because it's made up
entirely of non-trivial inlined code, it's not practical to avoid this dependency. It's for
this reason the PipeWire backend cannot be included in miniaudio.h since it has a requirement
that it does not depend on external development packages. To use the PipeWire backend, you
need to plug it in as a custom backend. See the custom_backend example for how to do this.
The PipeWire backend cannot be used with `-std=c89`. This is because the SPA headers do not
support it.
*/
#ifndef miniaudio_backend_pipewire_h
#define miniaudio_backend_pipewire_h