Commit graph

168 commits

Author SHA1 Message Date
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
David Ackerman
d93d06f81e
Update oboe version 2020-11-01 14:09:51 +02:00
enfipy
bf766c1d5d
Update oboe to newest version. Fix support of input/output oboe streams 2020-10-29 19:32:11 +02:00
enfipy
0ff26d163d
Add apk build and alter CI 2020-10-27 21:14:42 +02:00
mitchmindtree
f8775b1e7b
Merge pull request #468 from endragor/android-support
Android support via Oboe
2020-10-27 12:26:33 +01:00
Ruslan Mustakov
4e9d27266c Android support via Oboe 2020-10-24 15:42:21 +07:00
Erik Natanael Gustafsson
2b31fe41af
JACK Host (#389)
Co-authored-by: Federico Dolce <psykopear@gmail.com>
2020-10-01 18:04:43 +09:00
est31
7a8f017b1d
Release 0.12.1 (#456) 2020-07-23 01:28:42 +02:00
est31
42ee11affc Depend on version 0.2 of asio-sys 2020-07-23 00:55:40 +02:00
est31
62ba9a96b0
Publish version 0.12.0 (#443) 2020-07-09 06:40:17 +02:00
est31
ae0fc33b17
lazy_static and num-traits are only used by windows (#442) 2020-07-09 06:08:22 +02:00
Damian Peckett
6f43fc2b60 Add a wasm-bindgen based generic Web Audio backend. 2020-05-06 13:44:00 +02:00
mitchmindtree
63db35ed97
Merge pull request #7 from JoshuaBatty/timestamp_coreaudio_fixes
Timestamp coreaudio fixes
2020-05-01 15:24:15 +02:00
JoshuaBatty
590d37b103 fixes compile errors for coreaudio timestamp work 2020-05-01 15:20:37 +02:00
mitchmindtree
cdf23c3c62 Add stream timestamp implementation to WASAPI backend
This was written on Linux and while the code type-checks, it has not yet
been tested.
2020-04-29 14:59:25 +02:00
Alex Moon
62d540d396 Switch from vendored alsa-sys to alsa crate 2020-04-03 16:56:51 -04:00
mitchmindtree
2bf905f3ec
Merge pull request #358 from jbeich/dragonfly
DragonFly support
2020-01-13 15:47:45 +01:00