1001 Commits

Author SHA1 Message Date
Ryan McGrath
f51589c552 Replace assert in WASAPI check with bubble'd error (#797)
Replace assert in WASAPI WAVEFORMTEX supported format check with bubbled error message.

For our use case, this stops a crash that pops up for some users who encounter this path and allows us to gracefully just not play audio and log a message elsewhere.
2023-09-01 01:57:39 +02:00
Hugo van der Merwe
f063271c23 Fix synth_tones frequency (#792)
Each *_wave() function calls advance_sample(). Having tick() also call it results in skipping every second sample.
2023-08-03 03:42:34 +02:00
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
Dickless
d0ff4fe91f Fix warnings in asio_sys (#779)
* Fixed warnings using deprecated Error::description

* Allowed dead_code
2023-07-20 21:53:45 +02:00
Jamie Pond
19991d3607 Improve synth tones example (#784) 2023-05-30 12:44:20 +02:00
est31
d4ba28df73 Merge pull request #777 from mizuki0629/asio-sys
Remove unnecessary Lazy Mutex
2023-04-14 13:43:00 +02:00
mizuki0629
f46430828d Remove unnecessary Lazy Mutex 2023-04-14 20:00:45 +09:00
mizuki0629
7d40371785 fix: asio-sys build failure, Segmentation fault (#775) 2023-04-14 10:12:55 +02:00
Easyoakland
848abf256f Added must use to stream. Fixes issue #589 (#772) 2023-04-04 04:36:28 +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
VincentJousse
61a2210d70 webaudio: set the channel_count in the AudioDestinationNode (#768)
Co-authored-by: Vincent Jousse <vincent.jousse@luminvent.com>
2023-03-30 16:05:42 +02:00
eladyn
17e7ab61fd bump windows dependency to 0.46 (#765) 2023-03-26 17:40:47 +02:00
Dickless
6ed426614a Fixed wasapi thread panics involving the main(or other) thread(when Stream drops). (#756)
when main(or other) thread(s) try to drop the Stream object, they would panic at host/wasapi/stream.rs Stream::drop() if the wasapi thread is dead. this occurs when the user wants to do something after all the cpal objects have been dropped.
2023-03-15 15:10:38 +01:00
est31
72d5731256 Merge pull request #761 from mockersf/update-to-0.15.1
prepare 0.15.1 release
2023-03-15 01:03:37 +01: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
Julián Bayardo Spadafora
bd1ec6ae2e Re-run build script if CPAL_ASIO_DIR changes or the folder it points to does (#759)
* Re-run build script if the CPAL_ASIO_DIR env variable changes value

* Re-run build script if the SDK changes
2023-03-10 12:43:43 +01:00
est31
e5ccc46afa Merge pull request #681 from MeadowlarkDAW/remove-thiserror
Remove thiserror and replace it with handwritten Error impls
2023-02-25 21:39:04 +01:00
Adrien Prokopowicz
459499686e Remove thiserror and replace it with hand written Error impls 2023-02-25 20:41:07 +01:00
est31
5ade4e3907 Merge pull request #750 from kenbunitag/oboe-shared-stdcxx-feature
make oboe's shared-stdcxx feature accessible
2023-02-13 22:36:49 +01:00
Carl Scherer
5a7769e5d8 make oboe's shared-stdcxx feature accessible 2023-02-07 19:34:16 +01:00
est31
e1e33c1acf Merge pull request #746 from est31/release_0_15_0
Release 0.15.0
2023-01-29 15:47:27 +01:00
est31
9fbca9d074 Update cpal to 0.15.0 2023-01-29 15:38:07 +01:00
est31
ea867aee80 Changelog for 0.15.0 2023-01-29 15:37:19 +01:00
est31
e0aab2431d Remove authors
As per the RFC 3052.
2023-01-29 15:29:36 +01:00
est31
9d690fa2af Merge pull request #745 from est31/update_deps
Update dependencies
2023-01-29 15:27:19 +01:00
est31
f5f103a196 Update dependencies
Updates alsa, windows, jack dependencies.
2023-01-29 15:16:21 +01:00
est31
c67b4288f5 Merge pull request #742 from AmionSky/fix-memfree
Fix CoTaskMemFree always getting called with null
2023-01-22 14:25:13 +01:00
Csányi István
72ad936b58 Fix CoTaskMemFree always getting called with null 2023-01-22 14:13:35 +01:00
est31
96e1fbfd8c Merge pull request #741 from erikas-taroza/master
Update oboe dependency
2023-01-19 09:57:49 +01:00
TypicalEgg
df51e0d472 Update oboe dependency 2023-01-19 00:36:06 -08:00
Dimitris Apostolou
f123811209 Fix typos (#738) 2023-01-08 22:23:43 +01:00
Ruairidh Williamson
90471506b1 Support i32 for asio (#737) 2022-12-27 23:25:02 +01: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
Greg Wiley
edecb26ff3 Fix compile issues in wasm-beep example (#723)
Fixes #721

Changes to a dependency library broke compilation of the example. Changes needed to get the example working and warning-free include:
 
1. specifying additional type constraints in local implementations
2. using the `FromSample` trait to convert samples in the handler
3. adding a default matcher in response to the non-exhaustive attribute on `SampleFormat`

Also adds a github action to ensure the wasm-beep example compiles.
2022-11-06 04:34:08 +01:00
Dan Wilhelm
a9b34ea8bc Update wasm-beep to webpack 5 (#684) 2022-11-04 22:18:31 +01:00
alichay
7e17373e31 Add rustdoc links in most of the documentation (#682)
* Add rustdoc links in most of the documentation

Additionally, fix a couple of references to old
renamed types still lingering in the docs :)

Fixes #650

* Rustfmt on documentation changes

* Make docs for impl_platform_host not build example
2022-11-04 21:57:23 +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
est31
0965eadd5e Merge pull request #715 from est31/changelog_0_14_1
Add changelog for 0.14.1
2022-10-23 21:00:11 +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
est31
c28d89e015 Add changelog for 0.14.1 2022-10-23 20:51:50 +02:00
est31
4b49fbd259 Merge pull request #711 from mbodmer/update_nix_to_0.25
update nix crate to v0.25
2022-10-20 20:43:49 +02:00
Marc Bodmer
16617ceade update nix crate to v0.25 2022-10-20 16:03:47 +02:00
mbodmer
0a3e8c2208 add timeout paramter to DeviceTrait stream builders (#696)
* add timeout paramter to DeviceTrait stream builders

This makes it possible for the library client to handle situations where the host
takes too long to respond or even blocks forever, eg. a retry can be applied.

if the timeout passed is "None" the current behaviour is applied, eg. blocking forever.
if the timeout passed is a Duration then it will be applied to the Device Streams.
This is only implemented for ALSA, the other hosts will ignore the parameter for now.

Signed-off-by: Marc Bodmer <marc.bodmer@securiton.ch>
2022-10-18 18:15:31 +02:00
est31
def424809b Merge pull request #707 from generalelectrix/core-audio-disconnect-device
Implement disconnection detection for CoreAudio on MacOS.
2022-10-12 18:12:22 +02:00
general electrix
3d99456c2b Remove debug print statement. 2022-10-11 03:08:10 -07:00
general electrix
d1bbbe0400 Fix docstring grammar. 2022-10-11 03:06:34 -07:00
general electrix
97af8b77ae Respond to code review tidbits. 2022-10-11 02:59:02 -07:00
general electrix
0af6a1c466 Refactor disconnection to trigger error_callback. 2022-10-11 02:55:03 -07:00