Commit graph

61 commits

Author SHA1 Message Date
Ali Somay
efa0c7af6b
Improve asio sys build script (#809)
* Make build script more robust

* Make build dependencies available regardless of target

* Fix error about the u32 i32 type mismatch

* Update readme

* Fix target_arch bug
2023-11-11 16:27:55 +01:00
Ali Somay
3a449538b7
Automate asio sys build (#804) 2023-10-17 12:13:30 +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
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
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
James Liu
223f28262a
Update dependencies, switch to once_cell (#673) 2022-06-06 02:18:23 +02:00
Dimitris Apostolou
1cd0caf8b6
Fix typos 2022-02-19 18:14:34 +02:00
l1npengtul
7932aed5d8 bump asio-sys bindgen to 0.56, change version to 0.2.1 2021-11-26 08:49:04 +09:00
Rémi Lauzier
ba462dad18
Fix some typo and warnings 2021-06-29 11:30:26 -04:00
est31
0b185514b8 Release asio-sys 0.2.0 2020-07-23 00:55:09 +02:00
est31
822d9da643 Update repo url of asio-sys 2020-07-22 23:38:54 +02:00
est31
13041efbfd
Update bindgen dep of asio-sys to 0.54.0 and num-derive to 0.3 (#454) 2020-07-22 23:36:50 +02:00
JoshuaBatty
9c85eecb59 cargo fmt fix 2020-05-27 12:15:31 +02:00
JoshuaBatty
9e660da433 implemented buffersizes for asio 2020-05-26 14:55:55 +02:00
mitchmindtree
46afc8f695 Fix code formatting of asio-sys timestamp changes 2020-05-01 15:34:01 +02:00
JoshuaBatty
225f441d5b addressed some compilation errors on asio timestamp implementation 2020-05-01 14:05:16 +02:00
mitchmindtree
22eef32898 WIP Add timestamp implementation to ASIO backend
Currently unchecked and untested, though most of the groundwork should
be laid.
2020-05-01 13:10:50 +02:00
est31
d97983e218 Remove redundant 'static from &'static str
Specifying the static lifetime in constants and static variables
is redundant since Rust 1.17.0

https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1170-2017-04-27
2020-02-24 07:40:25 +01:00
mitchmindtree
7e846b47ad Ensure all crates are formatted correctly, not just cpal itself. 2020-01-21 14:18:16 +01:00
mitchmindtree
01425b4b80 Patch for bindgen update in ASIO backend 2020-01-19 03:39:15 +11:00
mitchmindtree
6fbb701826 Update CoreAudio backend for removal of UnknownBufferType 2020-01-18 15:15:41 +01:00
mitchmindtree
ca2aceb536 Fix state transition synchronisation in ASIO
This makes some tweaks to the ASIO backend in order to fix some cases
where races may have occured. This should allow us to remove the `Sync`
bound on the `Device` and `Host` types.
2020-01-12 22:40:05 +01:00
mitchmindtree
39ade49347 RAII cleanup wthin the ASIO backend
- Shares the `Device`'s `driver` and `asio_streams` `Arc`s with the
`Stream`s to ensure they remain valid if the `Host` or `Device` are
dropped early.
- Ensures that a stream's callback is removed upon `Drop`.
2019-12-31 15:46:10 +01:00
mitchmindtree
5b6570e661 Add missing Cargo.toml entries to asio-sys 2019-07-05 19:20:30 +02:00
mitchmindtree
714dab7270 Refactor asio message to use a match expr. Fix some typos. 2019-07-05 13:19:42 +02:00
mitchmindtree
b7d40d2993 Handle timed buffer switch and messaging callbacks in asio-sys
This adds an implementation of ASIO message handling in a manner that
matches that demonstrated in the SDK's `hostsample.cpp` file.

Also refactors the code to ensure that both `buffer_switch` and
`buffer_switch_time_info` callbacks are handled.
2019-07-05 05:51:32 +10:00
mitchmindtree
cc5b0555c2 Refactor of asio-sys while reviewing for code correctness
Most of this is an attempt at improving readability and modularity of
the asio-sys crate while attempting to review it for correctness. Still
unsure why glitching is occasionally occuring on output, but recorded
input sounds perfectly clean.
2019-07-05 05:51:31 +10:00
mitchmindtree
91c5aa86b3 Fix Driver destructor behaviour in asio-sys 2019-07-05 05:51:31 +10:00
mitchmindtree
c432f2b18d Update asio-sys to allow for having multiple handles to the same driver
ASIO has a limitation where it only supports loading a single audio
driver at a time. This fixes a common error where CPAL users would
request both the default input device and output device in separate
`load_driver` calls. Now, `load_driver` will return another handle to
the existing driver if the existing driver has the same name.
2019-07-05 05:51:31 +10:00
mitchmindtree
86e3366063 Remove unnecessary num crate from asio-sys 2019-07-05 05:51:30 +10:00
mitchmindtree
c2b7c7f648 Remove .DS_Store from asio-sys gitignore 2019-07-05 05:51:30 +10:00
mitchmindtree
191b90909a Make Driver type responsible for managing user callbacks 2019-07-05 05:51:30 +10:00
mitchmindtree
b6181d4362 Add impl Send for AsioStream 2019-07-05 05:51:29 +10:00
mitchmindtree
d739a5b79d Majority of ASIO host update following refactor
Currently not compiling - still need to address some global items within
asio-sys, including the `set_callback` function and the double buffer
globals.
2019-07-05 05:51:29 +10:00
mitchmindtree
efe683133c Refactor asio-sys to use less global state and more RAII
The asio-sys examples have been tested and still work nicely. The CPAL
asio host has not yet been updated for these changes.
2019-07-05 05:51:29 +10:00
mitchmindtree
747caeee38 Get asio-sys examples working with latest API updates 2019-07-05 05:51:28 +10:00
Tom Gowan
ab3b76ad75 fixes, remove transmute 2019-07-05 05:51:26 +10:00
Tom Gowan
7950045240 minor fixes 2019-07-05 05:51:26 +10:00
Tom Gowan
062205160c remove build.bat 2019-07-05 05:51:26 +10:00
Tom Gowan
25070464f9 git ignore, temp files, fetch_add, os cfg 2019-07-05 05:51:26 +10:00
Tom Gowan
616974353b opt in and bug fix 2019-07-05 05:51:26 +10:00
Tom Gowan
72c5e9a8c1 asio sys lib comments and rust fmt 2019-07-05 05:51:25 +10:00
Tom Gowan
f6d1a74be2 asio sys lib comments and rust fmt 2019-07-05 05:51:25 +10:00
Tom Gowan
ffcbc02e52 multi channels 2019-07-05 05:51:25 +10:00
Tom Gowan
6e0eb073d1 sample rate support 2019-07-05 05:51:25 +10:00
Tom Gowan
5ec6da3aad Fixed driver bug 2019-07-05 05:51:24 +10:00
Tom Gowan
ed50bb9923 adding outputs 2019-07-05 05:51:24 +10:00
Tom Gowan
ff7fd62a2d clean up 2019-07-05 05:51:24 +10:00
Tom Gowan
8193bc9f79 sharing asio streams 2019-07-05 05:51:24 +10:00