Commit graph

1073 commits

Author SHA1 Message Date
S. A. Bjørn
a420316e30
Fix example typos (#655)
both feedback.rs and record_wav.rs have "bleep" as their application name when constructing clap::Command. This commit changes the constructor argument for each example to match their filenames.
2022-03-24 16:21:44 +01:00
est31
f0d47204c9
Merge pull request #654 from lu-zero/alsa-fallback
Fallback to monotonic timestamp if monotonic_raw can be set up
2022-03-22 21:28:56 +01:00
Luca Barbato
a540a98b0a Fallback to monotonic timestamp if monotonic_raw can be set up
Fixes #606
2022-03-22 21:24:41 +01:00
Tatsuyuki Ishi
190e48d7ff
Merge pull request #653 from ishitatsuyuki/feature-platform-impl
platform: Conditional impl_platform_host based on feature flags
2022-03-20 09:59:56 +09:00
Tatsuyuki Ishi
6ea33722ff platform: Conditional impl_platform_host based on feature flags 2022-03-18 16:36:29 +09:00
est31
9748543025
Merge pull request #648 from kaihagseth/fix/follow-default-osx
fix: follow default output source on mac osx
2022-02-28 17:01:57 +01:00
Kai Hagseth
d50e0ecbac fix: follow default output source on mac osx
When playing out on default output source, follow the default output
source chosen in sound preferences in osx.
2022-02-28 09:37:17 +01:00
est31
bf026fe082
Merge pull request #646 from rex4539/typos
Fix typos
2022-02-19 17:16:47 +01:00
Dimitris Apostolou
1cd0caf8b6
Fix typos 2022-02-19 18:14:34 +02:00
est31
da3dbba697
Merge pull request #644 from remilauzier/master
Update jack and parking_lot
2022-02-18 23:05:23 +01:00
Rémi Lauzier
7c0e4eb1e5
Update jack and parking_lot 2022-02-18 14:24:33 -05:00
est31
1d9bb5bd2e
Merge pull request #643 from remilauzier/master
Clap 3.1
2022-02-18 20:10:12 +01:00
Rémi Lauzier
6087b05604
Clap 3.1 2022-02-18 13:08:59 -05:00
est31
83b96beb44
Merge pull request #642 from remilauzier/master
Rust 2021 and clap 3.0
2022-02-18 15:29:07 +01:00
Rémi Lauzier
8b99fce094
Rust 2021 and clap 3.0 2022-02-18 03:24:43 -05:00
est31
682508405a
Merge pull request #641 from MarijnS95/ndk-context
android: Migrate from `ndk-glue` to `ndk-context`
2022-02-16 23:15:21 +01: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
nyanpasu64
1edf930bb4
Cleanup and document cpal's ALSA backend (#629) 2022-01-22 22:38:13 +01:00
Wandalen
33094e89f5
Add sample-based generation example: synth_tones (#612) 2022-01-14 13:38:08 +01:00
Ram.Type-0
1b522fb3db
Faster sample format conversion (#618)
* Remove branch in `u16::to_i16` and `i16::to_u16`

If optimizations are at least at level 1, the conversions compile down to the same code as the old one, but if they are turned off, the new code is faster.

* Faster conversion from `f32` to `u16`

The new code is faster in release mode.
2022-01-14 12:23:30 +01:00
est31
f8b1ab53b4
Merge pull request #632 from enfipy/patch-2
Bump android dependencies
2022-01-14 12:08:37 +01:00
David Ackerman
26411e8e8b
Update Cargo.toml 2022-01-14 00:32:20 +02:00
est31
ee6a9aab8a
Merge pull request #631 from lu-zero/clap-3
Update to clap3
2022-01-12 17:54:24 +01:00
Luca Barbato
78c238e6cc Update to clap3 2022-01-12 16:55:46 +01:00
est31
7ff54f17a7
Merge pull request #621 from simlay/fix-ios-example
Fix iOS example in CI
2022-01-01 16:56:43 +01:00
Sebastian Imlay
d36e39ee14 Maybe fix ci 2021-12-31 11:06:14 -05:00
est31
d0b9b28115
Merge pull request #620 from l1npengtul/master
bump asio-sys bindgen to 0.56, change version to 0.2.1
2021-12-31 11:02:40 +01:00
est31
23dafd32f0
Merge pull request #624 from Be-ing/update_jack
update jack to 0.8
2021-12-13 05:40:08 +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
est31
b9511a21a5
Merge pull request #622 from hyranno/fix-asio-building-output-stream
Fix ASIO driver.prepare_output_stream should take streams.input
2021-12-07 09:33:32 +01:00
hyranno
241b495f44 fix: driver.prepare_output_stream should take streams.input 2021-12-01 12:55:38 +09:00
Sebastian Imlay
77cdab0823 Added work around for big sur clang issue 2021-11-27 12:21:50 -05:00
l1npengtul
7932aed5d8 bump asio-sys bindgen to 0.56, change version to 0.2.1 2021-11-26 08:49:04 +09:00
est31
59ee8ee057
Merge pull request #614 from EmbarkStudios/upgrade-ndk-dependencies
Upgrade ndk and ndk-glue dependencies, both to 0.4.0
2021-11-10 14:35:44 +01: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
0f279894f2
Merge pull request #611 from est31/update_alsa
Update alsa and nix dependencies
2021-10-31 23:46:31 +01:00
est31
8e616c3dd9 Update alsa and nix dependencies
Also fixes the build.
2021-10-31 23:37:27 +01:00
est31
b26f8be21f
Merge pull request #609 from capveg/master
cpal's nix dependency to 0.21; resolve build issue
2021-10-28 13:37:31 +02: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
9597330116
Merge pull request #598 from est31/release_0_13_4
Release 0.13.4
2021-08-08 22:33:44 +02:00
est31
683e992d52 Release 0.13.4 2021-08-08 22:23:16 +02:00
est31
8f0828b402 Changelog for 0.13.4 2021-08-08 22:22:51 +02:00
est31
508618d558
Merge pull request #597 from ishitatsuyuki/com
wasapi: Allow both threading models and switch the default to STA
2021-08-08 07:04:36 +02:00
Tatsuyuki Ishi
03947afefb wasapi: Allow both threading models and switch the default to STA
COM can prevent undefined behavior in either concurrency model by
performing marshaling when necessary. As a result, CoInitializeEx can be
called with either concurrency model, and in this case STA provides better
compatibility with other code requiring STA, e.g. ASIO backend or winit
drag-and-drop.

To dive into the detail, the entry point of WASAPI, MMDeviceEnumerator, is
registered with "both" threading model, which means that COM objects are
created with whatever the thread's concurrency model is set to. This raises
the concern that when STA is used, marshaling might make audio buffer
operations block on the main thread, breaking continuous audio processing.
However, the implementation actually uses free-threaded marshaller for
interfaces dealing with buffer operations, which effectively bypasses COM's
compatibility marshaling behavior and perform any API calls on the caller's
thread instead. Therefore, the interfaces would operate just fine on either
concurrency model.

For more details on COM's threading model, see [1].

[1] https://thrysoee.dk/InsideCOM+/ch04d.htm

Co-Authored-By: Henrik Rydgård <hrydgard@gmail.com>

Close #59
Close #348
Close #504
Close #530
Close #538
Close #572
2021-08-08 12:03:18 +09:00
est31
04c93f4452
Merge pull request #588 from remilauzier/master
Update dependency
2021-07-30 23:55:24 +02:00
Rémi Lauzier
5afa12c5f7
Update dependency 2021-07-30 16:54:21 -04:00
est31
116ee431a6
Merge pull request #587 from remilauzier/master
Fix some typo and warnings
2021-06-29 18:05:34 +02:00
Rémi Lauzier
ba462dad18
Fix some typo and warnings 2021-06-29 11:30:26 -04:00
est31
5bbfa4992e
Merge pull request #584 from remilauzier/master
fix some clippy warnings
2021-06-28 11:36:54 +02:00