Commit graph

1038 commits

Author SHA1 Message Date
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
est31
611475d46f
Merge pull request #586 from alexmoon/fix-actions
Fix asmjs github action
2021-06-28 08:30:58 +02:00
Alex Moon
8f7cbb6cf0 Fix asmjs github action 2021-06-27 23:18:39 -04:00
Rémi Lauzier
6c78dce4c1
fix some clippy warnings 2021-06-25 18:07:05 -04:00
est31
e993111309
Merge pull request #583 from remilauzier/master
fix a rustc warning
2021-06-25 23:35:32 +02:00
Rémi Lauzier
acd2476cd7
fix a rustc warning 2021-06-25 16:23:23 -04:00
est31
9503ab729e
Merge pull request #582 from strohel/alsa-setup
[ALSA] Improve stream setup parameters.
2021-06-17 18:59:02 +02:00
Alex Moon
c349eb1477 [ALSA] Improve stream setup parameters.
* Always set period before setting buffer size, even if
  `BufferSize::Fixed`.
* Set `start_threshold` based on `alsa::Direction` to avoid underruns on
  playback streams.

Also refactor the return values of the set params functions to reflect their
actual use and resolve some clippy warnings (including a logic error in
`stream_timestamp()`).
2021-06-17 17:09:26 +02:00
est31
47ef62d413
Merge pull request #567 from RustyDAW/jack-alloc
Update to rust-jack 0.7 and simplify implementation
2021-06-07 08:47:18 +02:00
est31
b628b9d3bb
Merge pull request #575 from overdrivenpotato/master
Remove unimplemented size hint
2021-05-12 08:06:43 +02:00
Marko Mijalkovic
d6236adb84 Remove unimplemented size hint 2021-05-11 18:21:06 -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
est31
1b2469d0c1
Merge pull request #561 from Frando/patch-1
Add JACK support to README
2021-03-29 11:45:04 +02:00
est31
25ffc25324 Changelog for 0.13.2 and 0.13.3 2021-03-29 11:42:57 +02:00
est31
5837ceb58f
Merge pull request #562 from JCapucho/fix-alsa-distortion
Fix alsa in some configs outputting bad audio
2021-03-29 11:38:20 +02:00
est31
e75e4b4b5f Replace set-env with new method
set-env has been deprecated
2021-03-29 10:38:04 +02:00
est31
fbc0f71e21
Merge pull request #548 from xMAC94x/clippy
clippy fixes
2021-03-22 11:29:46 +01:00
Marcel Märtens
a945d83ac7 give each thread a unique name 2021-03-22 11:06:15 +01:00
Marcel Märtens
f9720b9767 clippy fixes 2021-03-22 10:59:08 +01: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
Franz Heinzmann
c5caae08e4
Add JACK support to README 2021-03-19 15:55:40 +01:00
est31
5cfa09042c
Merge pull request #547 from xMAC94x/update_deps
update dependencies
2021-03-16 19:35:17 +01:00
Marcel Märtens
2993afeb56 update dependencies 2021-03-11 16:51:18 +01:00
est31
ca85e411d8
Merge pull request #546 from maxded/bump-ndk-(glue)
Bump ndk dependencies
2021-03-05 15:00:03 +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
est31
09a78b519c
Merge pull request #536 from maxded/bump-android-deps
Bump Android dependencies
2021-03-05 00:33:20 +01:00
Max de Danschutter
a3ad8dd20b Fix clippy for Android CI 2021-01-30 12:30:50 +01:00
Max de Danschutter
f660d41738 Use prebuilt oboe-sys in CI 2021-01-30 12:16:49 +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
mitchmindtree
1d72ae7453
Merge pull request #485 from MichaelHills/mike-ios
Refactor coreaudio host and add iOS support + ios-feedback example
2021-01-02 16:28:30 +01:00
Michael Hills
f9f6990d9e Add iOS build to CI 2021-01-02 02:04:13 +11:00
Michael Hills
b9b36d6a9a iOS default sample rate pulled from audio unit 2021-01-02 02:04:13 +11:00
Michael Hills
2cccf99d50 Refactor coreaudio host and add iOS support + ios-feedback example 2021-01-02 02:04:13 +11:00
est31
36ae2f02a8
Merge pull request #523 from alexmoon/examples
Examples improvements
2020-12-23 02:37:59 +01: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