Commit graph

184 commits

Author SHA1 Message Date
Paul Hansen
17d2cc2084
Update windows-rs dependency (#791)
* Update `windows-rs` dependency

* Fix clippy warnings

* Update CHANGELOG.md
2023-07-25 11:35:54 +02:00
VincentJousse
2cae7b4323
prepare 0.15.2 release (#769)
Co-authored-by: Vincent Jousse <vincent.jousse@luminvent.com>
2023-03-30 18:37:24 +02:00
eladyn
17e7ab61fd
bump windows dependency to 0.46 (#765) 2023-03-26 17:40:47 +02:00
François
86da74e997 prepare 0.15.1 release 2023-03-14 13:59:00 +01:00
François
29dd8e2852
switch from mach to mach2 (#760) 2023-03-14 12:30:52 +01:00
Adrien Prokopowicz
459499686e
Remove thiserror and replace it with hand written Error impls 2023-02-25 20:41:07 +01:00
Carl Scherer
5a7769e5d8 make oboe's shared-stdcxx feature accessible 2023-02-07 19:34:16 +01:00
est31
9fbca9d074 Update cpal to 0.15.0 2023-01-29 15:38:07 +01:00
est31
e0aab2431d Remove authors
As per the RFC 3052.
2023-01-29 15:29:36 +01:00
est31
f5f103a196 Update dependencies
Updates alsa, windows, jack dependencies.
2023-01-29 15:16:21 +01:00
TypicalEgg
df51e0d472
Update oboe dependency 2023-01-19 00:36:06 -08:00
Paul Hansen
7776c6634a
Update windows-rs dependency (#726) 2022-11-13 05:03:23 +01:00
Pedro Tacla Yamada
56f54cb0b3
Update to use coreaudio-sys 0.11 (#706) 2022-11-09 12:26:06 +01:00
Caden Haustein
29999e6857
Remove stdweb in favor of js-sys, web-sys, and wasm-bindgen (#713) 2022-10-25 03:46:28 +02:00
mbodmer
97fc4edb8b
Bump linux deps, simplify examples, remove nix dep (#712)
* bump linux dependencies, dev-dependencies, anyhow, hound, ringbuf

* update to clap v4 and simplify examples with clap_derive

* have libjack installed when running with --all-features

* don't force the patch version for libc

* allow room for version resolution with nix

* nix dependency not used anymore, remove it
2022-10-23 20:59:45 +02:00
Marc Bodmer
16617ceade update nix crate to v0.25 2022-10-20 16:03:47 +02:00
general electrix
0af6a1c466 Refactor disconnection to trigger error_callback. 2022-10-11 02:55:03 -07:00
Kai Giebeler
85d773d59f Migrate Sample to dasp_sample (#689) 2022-10-07 14:08:54 +02:00
pin
0f8cd7a9c8 Add NetBSD support 2022-09-25 07:54:19 +02:00
est31
5dab2eda88 Release 0.14.0 2022-08-22 22:57:31 +02:00
Aceeri
9b7bb33965
Bump ndk/ndk-glue to 0.7 (#685) 2022-08-03 01:35:50 +02:00
Osspial
417b7fff6f
Implement BufferSize::Fixed in wasapi, and migrate wasapi to officially-supported Windows crate (#669)
I migrated to `windows-rs` in this PR since exposing the buffer size range for hardware-offloaded audio processing requires `IAudioClient2`, which isn't exposed in the `winapi` crate, and `winapi` seems to be more or less unmaintained at this point.

* Basic type conversion

* Make everything compile!

* Fix warnings

* Implement buffer sizing for wasapi

* Convert tabs to spaces

* Run cargo fmt

* Remove winapi from Cargo.toml

* Remove unused commented code from wasapi, and fix lingering TODOs

* Fix compile error

* Update to windows 0.37.0

* Run rustfmt

* Work around rustfmt nested tuple issues

* Improve readability of guid comparison code
2022-07-15 14:59:45 +02:00
James Liu
223f28262a
Update dependencies, switch to once_cell (#673) 2022-06-06 02:18:23 +02:00
Rémi Lauzier
7c0e4eb1e5
Update jack and parking_lot 2022-02-18 14:24:33 -05:00
Rémi Lauzier
6087b05604
Clap 3.1 2022-02-18 13:08:59 -05:00
Rémi Lauzier
8b99fce094
Rust 2021 and clap 3.0 2022-02-18 03:24:43 -05:00
Marijn Suijten
f8b05ade39 android: Migrate from ndk-glue to ndk-context
`ndk-glue` suffers one fatal flaw: it's "only" supposed to be used by
the crate providing `fn main()` and only supposed to end up in the
dependency graph once as it has `static` globals which get duplicated
across versions.

In the current case with `winit 0.26` still on `ndk-glue 0.5` but
`cpal` on `ndk-glue 0.6` it'll always panic in `fn native_activity()` as
the `static` globals on this version is not initialized.

Introducing `ndk-context`: a crate that holds these `static`s, with the
intention/premise to not see a breaking release /ever/ and make this a
problem of the past.  The crate is currently initialized with the VM and
Android Context on `ndk-glue` 0.5.1 and 0.6.1 (0.4.1 pending) making it
compatible with whatever is current, and the possibility for backporting
to older `ndk-glue` versions too.

See also:
https://github.com/rust-windowing/android-ndk-rs/issues/211
https://github.com/rust-windowing/android-ndk-rs/pull/223
2022-02-15 16:52:20 +01:00
David Ackerman
971c463462
Bump crate version (#635) 2022-01-28 01:18:00 +01:00
Wandalen
33094e89f5
Add sample-based generation example: synth_tones (#612) 2022-01-14 13:38:08 +01:00
David Ackerman
26411e8e8b
Update Cargo.toml 2022-01-14 00:32:20 +02:00
Luca Barbato
78c238e6cc Update to clap3 2022-01-12 16:55:46 +01:00
Be
5cbff436da
update jack to 0.8
This fixes the build with Pipewire's implementation of JACK:
https://github.com/RustAudio/rust-jack/pull/154
2021-12-12 21:27:48 -06:00
Henrik Rydgård
f1dcf41d5a Upgrade ndk and ndk-glue dependencies, both to 0.4.0 2021-11-10 14:04:29 +01:00
est31
8e616c3dd9 Update alsa and nix dependencies
Also fixes the build.
2021-10-31 23:37:27 +01:00
Rob Sherwood
a75de094de cpal's nix dependency to 0.21; resolve build issue
Building HEAD was broken with "two different versions of 'nix'".
This fixes it.

See https://github.com/RustAudio/cpal/issues/608
2021-10-28 03:27:53 -07:00
est31
683e992d52 Release 0.13.4 2021-08-08 22:23:16 +02:00
Rémi Lauzier
5afa12c5f7
Update dependency 2021-07-30 16:54:21 -04:00
Roope Salmi
833acbae61 Update to rust-jack 0.7 and simplify implementation
With rust-jack 0.7, the buffer_size callback is moved to
ProcessHandler. This reflects how it is actually called by jack:
it is called synchronously on the process thread, but it is allowed to
perform non-real-time-safe operations. In CPAL, this means that
it is fine to reallocate the temporary interlacing buffers when buffer
size changes.

This removes the need for buffer splitting on the output stream type,
and prevents panics when buffer size is made larger than initially on
the input stream type. (for some reason, buffer splitting was not
implemented for input previously)
2021-04-04 03:53:25 +03:00
João Capucho
52821d9c37
Fix alsa in some configs outputting bad audio
This was introduced in 6b91485 and could cause issues with some alsa
configurations like that of pipewire-alsa which caused the audio to be
become weirdly distorted
2021-03-19 22:04:32 +00:00
Marcel Märtens
2993afeb56 update dependencies 2021-03-11 16:51:18 +01:00
Max de Danschutter
eaf4018596 Bump ndk 0.2 -> 0.3
Bump ndk-glue 0.2 -> 0.3
2021-03-05 11:59:10 +01:00
Max de Danschutter
006c81ef32 Bump Android dependencies
oboe 0.3.0 -> obeo 0.4.0
Jni 0.17.0 -> 0.18.0
2021-01-29 16:57:20 +01:00
Michael Hills
2cccf99d50 Refactor coreaudio host and add iOS support + ios-feedback example 2021-01-02 02:04:13 +11:00
Alex Moon
e76e1de3a3 Switch from structopt to clap to reduce dependencies. 2020-12-22 09:25:36 -07:00
Alex Moon
269c60fde0 Add an Android example and enhance the other examples with CLI argument parsing. 2020-12-14 11:04:32 -07:00
Alex Moon
fb30d291ce Avoid calling alsa::PCM::new() multiple times.
Ensures that alsa::PCM::new() is called only once for a given Device so that we are
not rapidly opening and closing ALSA devices.
2020-11-18 10:22:41 -07:00
est31
a65e028412 Update alsa requirement to 0.4.3 and change io to io_bytes 2020-11-08 21:34:20 +01:00
est31
0e0cc39eb4 Release 0.13.1 2020-11-08 15:18:58 +01:00
est31
3ccbcb843c Update ringbuf dev-dependency 2020-11-08 15:02:55 +01:00
Marli Frost
d0696d4814 chore(deps): update parking_lot to 0.11 2020-11-08 10:08:33 +00:00