Matthew Gregan
a40d2f4cfa
chore: Release
2024-11-26 11:01:48 +13:00
Miriam Zimmerman
c98c38861c
Add new required option for libcubeb.
...
mozilla/cubeb@d504c22 turns off static builds of the MSVC runtime by
default; we need them here, so reenable.
2024-11-26 10:59:08 +13:00
Matthew Gregan
5efa0f23b6
Update cubeb-sys/libcubeb submodule to pick up Cargo.lock subproject imports
2024-11-22 11:33:20 +13:00
Matthew Gregan
6052bc1983
Update libcubeb to 0426c8532a429f4ac58ba3f27ba606d79418350b
...
This should address the circular dependency where cubeb-rs depends on
libcubeb and the Rust backends in libcubeb depend on cubeb-rs.
2024-11-20 12:19:17 +13:00
Matthew Gregan
c16d483bab
chore: Release
2024-11-15 13:55:53 +13:00
Matthew Gregan
311f21b0e4
Vendor libcubeb 78b2bce70e0d1c21d3c175b72f322c50801b2e94
2024-11-15 13:53:16 +13:00
Matthew Gregan
3b047d5414
Use a vendored copy of libcubeb rather than trying to clone via git.
2024-11-15 13:49:41 +13:00
Matthew Gregan
b157769eb7
Use a specific commit ID when checking out libcubeb in cubeb-sys/build.rs.
2024-11-05 18:44:34 +13:00
Matthew Gregan
512f66a905
chore: Release
2024-11-05 09:23:03 +13:00
Miriam Zimmerman
6730edb761
Fix docs.rs build. ( #108 )
...
Do not build libcubeb for docs.rs, as it's needlessly slow, and requires
network access.
2024-11-05 08:50:16 +13:00
Miriam Zimmerman
3e0a3e707b
Enable cross-compilation of rust libraries. ( #106 )
...
cubeb's CMakeLists.txt just does `cargo build`, which lets callers
cross-compile if they desire, by setting CARGO_BUILD_TARGET. However,
that will place the output in a different directory.
So, always specify *a* CARGO_BUILD_TARGET to force cargo to place the
built rust backends in a known location.
2024-11-05 08:44:39 +13:00
Matthew Gregan
4bdfda60b4
chore: Release
2024-10-31 15:41:50 +13:00
Matthew Gregan
edef7f86e0
Clone libcubeb and submodules to OUT_DIR when not present. ( #105 )
2024-10-31 15:41:16 +13:00
Matthew Gregan
c0ec36ec27
chore: Release
2024-10-30 17:07:43 +13:00
Matthew Gregan
ecf1284c4d
Fix `cargo package` build. ( #104 )
...
The `git submodule` commands that cubeb-sys and libcubeb rely on do not run
during a packaged build as the package is not a git repository.
2024-10-30 17:07:05 +13:00
Miriam Zimmerman
ab56f62178
Log callback: use RwLock rather than a mutex.
...
The log callback will likely be read far more often than it is written,
so use a reader-writer lock to minimize contention on the "write a log
message" path.
2024-10-25 13:27:18 +02:00
Miriam Zimmerman
e931eec8e1
Update libcubeb.
...
Pull in a cubeb-coreaudio-rs fix.
2024-10-24 14:27:22 +02:00
Miriam Zimmerman
eb8eb57b27
Allow clients to set a log callback.
2024-10-21 09:13:39 -07:00
Miriam Zimmerman
583c11cae6
Fix typo breaking build on ubuntu
2024-10-18 01:40:28 -07:00
Paul Adenot
716a8b488b
Install pulseaudio deps and start pulseaudio on Linux Desktop
2024-10-17 05:54:12 -07:00
Miriam Zimmerman
e6e74b6a06
Fix test builds.
2024-10-17 04:53:19 -07:00
Miriam Zimmerman
1185d25e95
Add non-functional workspace.excludes.
...
Once https://github.com/rust-lang/cargo/issues/6745 is fixed, this
`exclude` section will work and do what we need, but for now it is a
no-op.
2024-10-17 04:53:19 -07:00
Miriam Zimmerman
3d8887f70b
Add build.rs config to use rust backends.
...
Update libcubeb to ffd5184, which grabs the rust backends for pulse and
audiounit.
2024-10-17 04:53:19 -07:00
Miriam Zimmerman
90738b2e26
Cross-compile for aarch64-linux. ( #96 )
...
* Cross-compile for aarch64-linux.
This architecture has a different c_char: u8, rather than i8.
Due to https://github.com/rust-lang/rust/issues/113735 , this causes a
build breakage, since CStr::from_ptr was documented to take an i8 but
actually takes a c_char.
* Fix some new nightly clippy findings
* Exclude systest from cross-compile
* Fix another clippy finding
2024-10-08 10:21:58 +13:00
Miriam Zimmerman
d9be0bfca8
Fix build on arm64 linux.
...
On arm64 linux, c_char is u8. CStr::from_ptr is documented to take an
i8, but this is not accurate (see
https://github.com/rust-lang/rust/issues/113735 ); instead, it takes
c_char, which is sometimes but not always the same. One time it is
different is on aarch64 Linux, so without this commit, cubeb-rs fails to
build there.
2024-10-07 04:55:05 -07:00
Matthew Gregan
dff28a9473
chore: Release
2024-09-20 09:50:32 +12:00
Miriam Zimmerman
0a73433176
Fix windows build.
...
Add necessary flags to link with the appropriate libraries (and not
link with the inappropriate libraries) for build and debug.
2024-09-19 18:39:07 +12:00
Matthew Gregan
34cd9b005a
Update libcubeb to 877364f0509c9a54f2d7015a6a9b52b4c7c99edc.
2024-09-17 12:09:30 +12:00
Andreas Pehrson
1c01012efe
Fix warning about empty comment in cubeb-core/channel.rs
2024-05-29 14:39:56 +02:00
Andreas Pehrson
a0753c276d
Improve fmt::Debug impls for device info and device collection
2024-05-29 14:39:56 +02:00
Paul Adenot
6a2ee8ab0e
Specify version for cubeb-sys in cubeb-core
2024-05-13 12:05:56 +02:00
Paul Adenot
25b8160880
0.13.0 w/ audio dumping
2024-05-13 11:59:51 +02:00
Paul Adenot
db2ded9f54
Run the tests on macOS 14
2024-04-22 15:04:10 +02:00
Paul Adenot
e3cb5ca475
More clippy fixes
2024-04-22 15:04:10 +02:00
Paul Adenot
16d9dc1c80
Fix clippy about empty comment
2024-04-22 15:04:10 +02:00
Paul Adenot
d9930795ad
Fix clippy issue about clippy
2024-04-22 15:04:10 +02:00
Paul Adenot
582cdd1151
Update cubeb-sys/libcubeb revision
2024-04-22 15:04:10 +02:00
Paul Adenot
a0cfda36eb
Expose new unsafe audio dump API to rust.
2024-04-22 15:04:10 +02:00
Paul Adenot
cd66ed527f
Release 0.12.0
...
cubeb@0.12.0
cubeb-backend@0.12.0
cubeb-core@0.12.0
cubeb-sys@0.12.0
Generated by cargo-workspaces
2024-01-16 11:02:08 +01:00
Paul Adenot
55cfdfca5f
Don't include gtest in package in cubeb-sys
2024-01-16 11:01:51 +01:00
Andreas Pehrson
c8ca3bcee7
Bump version due to input processing ABI changes
2024-01-15 22:07:50 +01:00
Andreas Pehrson
ae7caff2ca
Bump libcubeb and Add input processing boilerplate
2024-01-15 22:07:50 +01:00
Andreas Pehrson
fcd238654b
Bump minor version
2023-12-12 11:43:38 +01:00
Andreas Pehrson
28bc4c164a
Update libcubeb submodule
2023-12-12 11:43:38 +01:00
Mike Hommey
a2c1c29a0f
Bump cubeb-core version
2023-09-27 13:36:48 +13:00
Mike Hommey
1bfbc1b925
Fix clippy::bad_bit_mask warnings
2023-09-13 11:59:36 +02:00
Mike Hommey
bbf30931de
Avoid relying on bitflags internals
...
This will allow to use a bitflags 2-derived bitflags 1 implementation in
mozilla-central.
2023-09-13 11:59:24 +02:00
Paul Adenot
f0d2a875e4
Minor version bump
2022-10-06 11:37:09 +02:00
Paul Adenot
817c6669aa
Use c_char instead of i8 to fix build on Linux aarch64.
...
It feels like std::ffi::c_char would be more appropriate, but this isn't
available in the minimum rust version supported by Firefox (it was just added
in 1.64, current Firefox must build with 1.61).
2022-10-06 10:57:58 +02:00
Matthew Gregan
6f2adf80fc
Minor version bump.
2022-10-01 09:08:28 +13:00