Coder Social home page Coder Social logo

tom-a-wagner / wireplumber.rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arcnmx/wireplumber.rs

0.0 0.0 0.0 607 KB

wireplumber rust bindings

Home Page: https://arcnmx.github.io/wireplumber.rs/main/wireplumber/

License: MIT License

Shell 1.00% C 1.93% Lua 0.01% Rust 93.23% Nix 3.83%

wireplumber.rs's Introduction

WirePlumber Rust Bindings

latest release docs MIT

This crate provides a high-level interface to PipeWire's API via libwireplumber. Explore the crate documentation and the various modules for information on how to start using WirePlumber with Rust.

Examples

Some examples are provided that can be built and run via Cargo:

$ cargo run -p wp-examples --bin wpexec -- --help
... snip ...

# try out the default lua example:
$ cargo run -p wp-examples --bin wpexec

# or load the example plugin module:
$ cargo build --workspace --examples &&
  cargo run -p wp-examples --bin wpexec -- --type wireplumber

External

Projects using wireplumber.rs:

  • WirePlumber Scripts is a personal collection of plugins, some previously written as Lua scripts.

Use Cases

This project aims to facilitate the following applications:

  • Enabling Rust to be a viable language for writing session management logic as an alternative to the officially supported Lua scripting engine or GObject C APIs

  • WirePlumber plugins that can augment or expose APIs for Lua configuration scripts to use

  • Stand-alone pipewire clients as an alternative to pipewire-rs

Development

Helper commands are available via cargo wp to facilitate development. Adding ci/bin to your PATH is recommended - the provided direnv shell is set up to do this by default.

Commands:
  • cargo wp install gir will install the pinned GIR version into ci/bin

    • cargo wp install gir-files for the associated data required by GIR

  • cargo wp gir will update the auto-generated source for the main crate

  • cargo wp sys gir will update the sys bindings source

  • cargo wp todo will display incomplete interfaces (this is just an alias for gir -m not_bound)

  • cargo wp fmt will rustfmt the codebase

GIR Schema

The WirePlumber GIR data is kept in Wp-0.4.gir. A series of fixes must be applied to the upstream XML via the wp-gir-filter script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.