Miriam Zimmerman
6bac666467
Check in Cargo.lock file.
...
This enables reproducible builds when libcubeb directly runs
`cargo build` on cubeb-pulse-rs.
2024-11-22 11:29:47 +13:00
Miriam Zimmerman
b6cddee439
Pass down gecko-in-tree feature to cubeb-backend.
...
This fixes a circular dependency when using versions of cubeb-rs that
include cubeb-pulse-rs.
2024-11-20 11:58:40 +13:00
Miriam Zimmerman
f951e72f26
cargo fmt
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
558f7fb6cb
Fix some new clippy lifetime warnings.
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
eb5a7bc33d
Disable broken clippy nightly check.
...
See https://github.com/rust-lang/rust-clippy/issues/13531
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
1161a7b5d9
Silence a bunch of clippy warnings.
...
https://github.com/mozilla/cubeb-pulse-rs/issues/95 tracks fixing these
in the future.
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
33037038ca
Manually fix some warnings and cargo fmt.
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
910b1b0d3b
Fix a bunch of clippy findings.
...
Largely autogenerated, with a bit of manual cleanup for extra
whitespace.
2024-10-11 12:30:43 +13:00
Miriam Zimmerman
f1104e7139
Add empty [workspace] to Cargo.toml.
...
This works around https://github.com/rust-lang/cargo/issues/6745 and
allows cubeb-pulse-rs to appear as a subdirectory of a workspace
member in another project (for instance, cubeb-rs).
2024-10-11 12:30:43 +13:00
Andreas Pehrson
8678dcab1c
Fix legacy numeric constants rendering errors in rust nightly
2024-05-15 14:08:21 +02:00
Andreas Pehrson
f845824777
Fix clippy::deprecated-clippy-cfg-attr warnings
2024-05-15 14:08:21 +02:00
Andreas Pehrson
977ea65a20
Update cubeb-backend to 0.13
2024-05-15 14:08:21 +02:00
Andreas Pehrson
8ff972c8e2
Bump cubeb-rs to 0.12.0 and handle ABI changes
2024-01-16 11:43:35 +01:00
Paul Adenot
c04c4d2c7f
Fix assertion
2023-11-17 13:19:32 +01:00
Paul Adenot
aa310a809f
Fix error on Nightly
2023-11-17 07:54:18 +01:00
Paul Adenot
891379bfad
apt-get update
2023-11-17 07:54:18 +01:00
Paul Adenot
e72fe64af0
Crash when a context is destroyed, per test expectations
2023-11-17 07:54:18 +01:00
Paul Adenot
6abc92d440
0.4.2
2023-09-27 13:42:08 +13:00
Paul Adenot
ddb539cde1
fmt
2023-09-27 13:42:08 +13:00
Paul Adenot
7950cd3d4c
Fix clippy issue on nightly
2023-09-27 13:42:08 +13:00
Paul Adenot
f26b75dff0
Bump bitflags to version 2
2023-09-27 13:42:08 +13:00
az
cf48897be5
Version bump 0.4.0 -> 0.4.1
2022-10-13 14:41:01 -07:00
az
78e46e83ec
Restrict async logging calls to check_error/read_data/write_data to avoid debug-only assert caused when logging from multiple threads (see: #727 and BZ 1794916)
2022-10-13 14:41:01 -07:00
az
811936325d
Fix clippy warning on nightly for i64 cast
2022-10-13 10:57:51 -07:00
Paul Adenot
79096eb59b
Use cubeb-backend 0.10.3
2022-10-10 13:53:54 +02:00
Paul Adenot
f32b3ef708
Rename cyclomatic_complexity to cognitive_complexity to fix clippy on Nightly
2022-08-23 09:51:28 +12:00
az
70b2c56971
Use async logging in real-time critical code
2022-08-23 09:51:28 +12:00
Mike Hommey
1f1fe1e08e
Update semver to 1.0
2022-06-01 17:06:31 +12:00
Matthew Gregan
24f5560329
Handle data_callback errors and signal to user via state_callback.
2022-03-30 18:12:08 +13:00
Matthew Gregan
df4dc0288b
Bump version to 0.4.0.
2022-03-22 11:43:34 +01:00
Matthew Gregan
eaba7cf4da
Fix `unnecessary `unsafe` block` warnings.
2022-03-22 11:43:34 +01:00
Matthew Gregan
f5a188c0dd
Update to cubeb-rs 0.10.0.
2022-03-22 11:43:34 +01:00
Chun-Min Chang
2b9dc4f470
Fix clippy::needless_late_init
...
Fix `#[warn(clippy::needless_late_init)]`
2022-03-19 13:44:34 +13:00
Paul Adenot
f2456201db
Add log statements in failure paths
...
I'm having a hard time debugging in the field without this.
2021-12-13 13:25:51 +01:00
Matthew Gregan
f0cd31f450
Fix two `clippy::needless-borrow` errors.
2021-10-16 11:11:12 +13:00
Mike Hommey
9695281319
Use an AtomicPtr for PulseStream's drain_timer
...
There is a race condition between `drained_cb` and `PulseStream::stop` that
happens reliably on Firefox CI with rust 1.56 beta (LLVM 13) and PGO
instrumentation. Here's how it goes:
- in the Firefox AudioIPC Server RPC thread, `PulseStream::stop` is
called
- `PulseStream::stop enters the loop waiting for drain, and blocks on
`mainloop.wait`
- Later, some other thread calls `drained_cb`, which resets `drain_timer`,
and signals the mainloop.
- Back the other AudioIPC Server RPC thread, `mainloop.wait` returns,
looping back to the test for `drain_timer`... which this thread
doesn't know had been updated yet, so it blocks on `mainloop.wait`
again.
2021-10-16 11:06:13 +13:00
Paul Adenot
e9e55a4529
Explicitely use a 64bits signed integer for the return of the callback to unbreak the build when compiling to 32-bits
2021-09-22 10:35:39 +02:00
Paul Adenot
b5aea956e1
Address a review comment
2021-09-21 11:03:18 +02:00
Paul Adenot
89188e4e71
When draining during the pre-buffering, write at least prebuf bytes by padding with silence
2021-09-21 11:03:18 +02:00
Paul Adenot
2d5ca2e595
Increment the output_frame_count counter in output-only stream as well
2021-09-21 11:03:18 +02:00
Paul Adenot
9372d921a3
Revert most of f42afe4a93
2021-09-21 11:03:18 +02:00
Matthew Gregan
3ad5978575
Fix clippy::needless-borrow
2021-07-23 16:40:19 +12:00
Matthew Gregan
18eeffb5ac
Ensure clippy is installed on CI.
2021-07-23 16:38:04 +12:00
Matthew Gregan
b7cce9842f
cargo fmt --all
2021-07-23 12:03:34 +12:00
Matthew Gregan
ac1e4b5b17
Enable fmt and clippy on CI.
2021-07-23 11:59:46 +12:00
Chun-Min Chang
4670504215
Fix: clippy::missing_safety_doc
...
Fix warning: unsafe function's docs miss `# Safety` section
2021-07-23 11:55:00 +12:00
Chun-Min Chang
3d81afed9f
Fix: clippy::ptr_offset_with_cast
...
Fix warning: use of `offset` with a `usize` casted to an `isize`
2021-07-23 11:55:00 +12:00
Chun-Min Chang
f95436b134
Fix: clippy::vec_box
...
Fix warning: `Vec<T>` is already on the heap, the boxing is unnecessary
2021-07-23 11:55:00 +12:00
Chun-Min Chang
5d0daaaa5e
Fix: clippy::bind_instead_of_map
...
Fix warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)`
2021-07-23 11:55:00 +12:00
Chun-Min Chang
d2d36716af
Fix: clippy::manual_map
...
Fix warning: manual implementation of `Option::map`
2021-07-23 11:55:00 +12:00