~signal_processor/simple-pipewire-filter

Small crate for creating/running a pipewire filter in rust.
Make libspa_sys public so that dependencies can interpret status ints correctly
Add some comments to the funcs that I know things about
Update dependencies, bump version

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~signal_processor/simple-pipewire-filter
read/write
git@git.sr.ht:~signal_processor/simple-pipewire-filter

You can also use your local clone with git send-email.

This is a simple crate for instantiating a pipewire filter using a mostly rusty API (most event handlers are using raw pointers from pipewire because the only way to interact with the data being pointed is via pipewire_sys, largely via pointers).

There is an example that shows this in action, but the gist is that you supply some metadata for your filter and its i/o (ports), and some event handlers (callbacks). You can then create and run the filter by either blocking or non-blocking (spawning a thread which then calls the blocking method in the latter case).

I may update this if I find bugs or I need more features when making applications that use pipewire. Hopefully the pipewire crate will eventually support filters, thus obsoleting this crate.