Skip to content

TristanCacqueray/pipewire.hs

Repository files navigation

pipewire.hs

Pipewire is a project that aims to greatly improve handling of audio and video under Linux. It provides a low-latency, graph-based processing engine on top of audio and video devices that can be used to support the use cases currently handled by both PulseAudio and JACK.

This project contains Haskell bindings to the libpipewire. This allows you to leverage the multimedia framework directly from your Haskell program.

Project Status

The bindings are experimental: only a small subset of the libpipewire is implemented. A basic high level API is available (exported in camelCase). Checkout the following examples:

References:

Nix

To use this library in your own Haskell projects that are built with Nix, this flake provides an output haskellExtend, which can be used to extend a collection of Haskell packages in nixpkgs. An example flake structure using this is shown below.

# flake.nix
{
    inputs = {
       ...
       pipewire-hs.url = "github:TristanCacqueray/pipewire.hs;
       ...
    };

    outputs = { self, nixpkgs, pipewire-hs, ...}: {
       ...
       haskellPackages = pkgs.haskellPackages.extend (pipewire-hs.haskellExtend { pipewire = pkgs.pipewire; });
       ...
    };
}

Contribute

Contribution, bug reports and feedback are welcome.

Run the tests with:

just ci

About

Haskell bindings to Pipewire Multimedia Framework

Topics

Resources

Stars

Watchers

Forks

Languages