mitchmindtree
d3fdb2dd4b
Merge pull request #307 from derekdreery/relax_buffer_size
...
Remove the (arbitary) restriction on buffer size
2019-08-10 20:10:24 +02:00
est31
624ca7624f
Update mod.rs ( #314 )
...
Fixes #309
2019-08-10 16:42:47 +02:00
est31
14c1258a57
Remove uninitalized from coreaudio backend
...
uninitialized is being deprecated in favour of
MaybeUninit and friends.
In fact, using mem::zeroed() here is the
initialization method that apple docs recommend.
https://developer.apple.com/documentation/coreaudiotypes/audiostreambasicdescription
2019-08-10 15:40:34 +02:00
est31
268ea6cfbf
Remove mem::uninitialized from alsa backend
...
uninitialized is being deprecated in favour of
MaybeUninit and friends.
2019-08-10 15:08:21 +02:00
Richard Dodd (dodj)
684aa6392a
Update mod.rs
...
Fixes #309
2019-08-04 11:49:15 +01:00
Richard Dodd
1c34dd682e
Remove code rather than comment out
2019-07-27 16:41:19 +01:00
Richard Dodd
b7d230150c
Remove the (arbitary) restriction on buffer size
2019-07-24 20:43:20 +01:00
mitchmindtree
68bccdb325
Merge pull request #304 from ishitatsuyuki/host-name
...
Add name to HostId
2019-07-18 15:17:31 +02:00
Tatsuyuki Ishi
984ff0fd30
Add name to HostId
2019-07-18 09:46:50 +09:00
Tatsuyuki Ishi
447300101d
Small tweak for ALSA underruns
...
The hardcoded errno was replaced by a constant, and `snd_pcm_prepare` was replaced by `snd_pcm_recover` per best practice (the underlying implementation seems same for now, though).
2019-07-07 19:42:08 +09:00
mitchmindtree
6cd7492f4c
Add missing `Hash` constraint to `StreamId`
...
This existed prior to the introduction of the `Host` API, but was lost
in translation. This re-adds the bounds so that downstream code does not
suddenly break due to a lacking `Hash` implementation in the next
CPAL version.
2019-07-05 19:28:34 +02:00
mitchmindtree
6245dd899c
Add some missing re-exports from the platform module into the crate root
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
64dc6accf9
Rebase for the trait refactor in #295 .
2019-07-05 06:03:33 +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
9182f00e20
Check that sample format is supported by ASIO when building streams
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
7d0f9c7265
Remove unreachable_patterns gate onto relevant fns so all platforms benefit
2019-07-05 05:51:31 +10:00
mitchmindtree
8f95042b8d
Add `asio` cargo feature for optional ASIO support
...
ASIO introduces quite a few extra crates and requires a fairly
complicated setup process (see the readme), so this feature is disabled
by default.
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
4dafb212fb
Refactor build_input_stream callback to, like recent output refactor
2019-07-05 05:51:30 +10:00
mitchmindtree
cc70a10c12
Remove unused supported_formats_err function
2019-07-05 05:51:29 +10:00
mitchmindtree
dc6c5c5a7c
Remove unnecessary asio_utils mod
2019-07-05 05:51:29 +10:00
mitchmindtree
50aa0585be
Remove unwieldy macro from output stream callback
...
Instead, we use some traits and generics in an attempt to retain a
little readability. See the remaining TODOs in this section for required
future work.
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
05f8b7dc43
Fix remaining compile errors for ASIO host
...
Now runs the beep and enumerate examples nicely! Time to do a proper
code review of the ASIO stuff and see how to best take advantage of the
new `Host` API.
2019-07-05 05:51:28 +10:00
mitchmindtree
09fd5562be
Update ASIO implementation for new error handling and Host API
...
This is currently untested and will almost certainly not build. I'm
about to move into a Windows VM to get everything running properly
again.
2019-07-05 05:51:28 +10:00
mitchmindtree
2bc9f85970
Update supported_formats methods for all sample rates and channel combos
...
Closes #32 .
2019-07-05 05:51:28 +10:00
Tom Gowan
bc94d167ae
fix endianess
2019-07-05 05:51:28 +10:00
Tom Gowan
f2c8099810
bug fix and comment
2019-07-05 05:51:27 +10:00
Tom Gowan
5eb311d8be
float conversion fix
2019-07-05 05:51:27 +10:00
Tom Gowan
a3defde208
Checks formats
2019-07-05 05:51:27 +10:00
Tom Gowan
c255da24bf
stream id bug
2019-07-05 05:51:27 +10:00
Tom Gowan
fd808b95e9
indentation and no clean up on destroy stream
2019-07-05 05:51:27 +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
25070464f9
git ignore, temp files, fetch_add, os cfg
2019-07-05 05:51:26 +10:00
Tom Gowan
523d25ad49
remove u16
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
1f24c76e6a
commenting and rustfmt for device
2019-07-05 05:51:26 +10:00
Tom Gowan
5248455cb7
commets and rustfmt for stream
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
b0b0484d4b
endian conversion
2019-07-05 05:51:25 +10:00
Tom Gowan
5ec6da3aad
Fixed driver bug
2019-07-05 05:51:24 +10:00
Tom Gowan
6a71f0a801
choose backend
2019-07-05 05:51:24 +10:00
Tom Gowan
91f2edb277
utils as mod
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
93f75940d6
fixed offset bug
2019-07-05 05:51:24 +10:00