33 releases (19 breaking)

Uses old Rust 2015

0.26.0 Feb 11, 2025
0.23.0 Feb 11, 2025
0.20.0 Dec 10, 2024
0.18.0 Nov 25, 2024
0.5.1 Mar 28, 2018

#46 in Audio

Download history 767/week @ 2024-11-21 331/week @ 2024-11-28 469/week @ 2024-12-05 416/week @ 2024-12-12 153/week @ 2024-12-19 14/week @ 2024-12-26 116/week @ 2025-01-02 322/week @ 2025-01-09 270/week @ 2025-01-16 346/week @ 2025-01-23 581/week @ 2025-01-30 1088/week @ 2025-02-06 739/week @ 2025-02-13 793/week @ 2025-02-20 259/week @ 2025-02-27 364/week @ 2025-03-06

2,342 downloads per month
Used in web-audio-api

ISC license

76KB
1.5K SLoC

cubeb-rs

Build Status

Documentation

cubeb bindings for Rust

[dependencies]
cubeb = "0.1"

Building cubeb-rs

First, you'll need to install CMake. Afterwards, just run:

$ git clone https://github.com/djg/cubeb-rs
$ cd cubeb-rs
$ cargo build

License

cubeb-rs is distributed under an ISC-style license. See LICENSE for details.


lib.rs:

libcubeb bindings for rust

This library contains bindings to the cubeb C library which is used to interact with system audio. The library itself is a work in progress and is likely lacking documentation and test.

The cubeb-rs library exposes the user API of libcubeb. It doesn't expose the internal interfaces, so isn't suitable for extending libcubeb. See cubeb-pulse-rs for an example of extending libcubeb via implementing a cubeb backend in rust.

To get started, have a look at the StreamBuilder

Dependencies

~2.5MB
~57K SLoC