Alex Moon
9c4e240a7c
Further refactoring of DeviceHandles.
...
Also fixes rustaudio/cpal#515 .
2020-12-09 08:38:25 -07:00
Alex Moon
b89df31797
Refactor ALSA handle manipulation into methods on DeviceHandles.
2020-12-07 16:16:50 -07:00
Alex Moon
fb30d291ce
Avoid calling alsa::PCM::new() multiple times.
...
Ensures that alsa::PCM::new() is called only once for a given Device so that we are
not rapidly opening and closing ALSA devices.
2020-11-18 10:22:41 -07:00
est31
a65e028412
Update alsa requirement to 0.4.3 and change io to io_bytes
2020-11-08 21:34:20 +01:00
Sergej Jurečko
3d163c3468
fix panic on windows if device gets unplugged
2020-11-05 09:24:00 +01:00
mitchmindtree
2220f58491
Merge pull request #491 from creator-rs/master
...
Add Android APK build CI and Release version 0.13.0
2020-11-03 13:03:47 +01:00
enfipy
bf766c1d5d
Update oboe to newest version. Fix support of input/output oboe streams
2020-10-29 19:32:11 +02:00
mitchmindtree
c3fce0bc7b
Merge pull request #452 from darakshan/master
...
Eliminate or suppress Clippy messages.
2020-10-27 23:36:28 +01:00
mitchmindtree
70408a92ec
Merge pull request #478 from dheijl/master
...
Re-enable WasApi loopback capture
2020-10-27 23:33:44 +01:00
mitchmindtree
f8775b1e7b
Merge pull request #468 from endragor/android-support
...
Android support via Oboe
2020-10-27 12:26:33 +01:00
dheijl
621d99ba56
Merge pull request #4 from RustAudio/master
...
Sync with rustaudio cpal
2020-10-25 12:53:30 +01:00
Johnny Egeland
43d7363aa2
Fixed error in sub-second nanos calculation which caused overflow panic
2020-10-25 11:15:54 +01:00
Ruslan Mustakov
4e9d27266c
Android support via Oboe
2020-10-24 15:42:21 +07:00
dheijl
f4621de3a3
Merge pull request #2 from RustAudio/master
...
JACK Host (#389 )
2020-10-01 12:35:40 +02:00
Erik Natanael Gustafsson
2b31fe41af
JACK Host ( #389 )
...
Co-authored-by: Federico Dolce <psykopear@gmail.com>
2020-10-01 18:04:43 +09:00
dheijl
1e9689ef48
rust format --all
2020-09-20 17:00:51 +02:00
dheijl
0d37421b45
rust format
2020-09-20 16:01:59 +02:00
dheijl
1f4d7b04c9
Merge pull request #1 from RustAudio/master
...
Merge with Rustaudio/cpal
2020-09-12 12:53:46 +02:00
est31
5fec80e344
Merge pull request #470 from exrook/master
...
Handle ALSA overruns/underruns by resetting the PCM device
2020-09-11 20:57:58 +02:00
Rob Watson
0b300afefe
wasm backends: Avoid a heap allocation in default_output_config()
2020-09-11 11:39:43 +02:00
Rob Watson
b5b6014edf
wasm backends: Fix default_output_config behaviour
2020-09-11 09:29:00 +02:00
dheijl
78e8452150
Reenable WasApi loopback
2020-09-10 15:32:18 +02:00
Jacob Hughes
6b91485781
ALSA: Fix 100% CPU usage after underrun
...
With my previous patch, after an underrun occurred sometimes polling the
alsa FDs would always return POLLIN immediately, but avail_frames would
be zero. Eventually avail_frames would become nonzero and audio output
would work, but poll would still return immediately afterwards.
Calling `stream.prepare()` when this happens seems to fix the issue after
a few loops.
2020-09-01 12:31:06 -04:00
Jacob Hughes
119ada803e
Handle ALSA overruns/underruns by resetting the PCM device
2020-08-31 14:20:24 -04:00
Richard Mitic
cb49e4446c
Use alsa::pcm::Frames in alsa API calls instead of fixed-width integers.
...
`alsa::pcm::Frames` resolves to `c_long` which is 32 bits when compiling
for raspberry pi (armv7l).
2020-07-27 14:18:41 +02:00
Darakshan Farber
7d35b7d448
rustfmt
2020-07-21 17:59:53 -07:00
Darakshan Farber
17e079d15d
Eliminate or suppress Clippy messages.
2020-07-21 12:54:49 -07:00
Rob Watson
8a3dc611fa
Fix compilation warnings
2020-07-14 22:05:55 +02:00
mitchmindtree
b78ff83c03
Merge pull request #401 from JoshuaBatty/buffersize_range
...
Prototyping an API for getting the supported min and max buffersizes
2020-07-14 14:35:46 +02:00
JoshuaBatty
e739dbf32d
cargo fmt
2020-07-14 14:11:35 +02:00
JoshuaBatty
e854c4e54c
added in sniperrifle2004 code from PR 431
2020-07-14 14:10:00 +02:00
JoshuaBatty
f285389002
fixed mismatched types in emscipten set_timeout
2020-07-14 13:51:49 +02:00
JoshuaBatty
4ce12a69b9
adds docs for BufferSize and fixes buffersize bugs in emscripten and alsa
2020-07-14 13:19:26 +02:00
Konstantin Baltruschat
b177bcdf22
Fix build error when cross compiling to 32bit targets ( #430 )
2020-06-17 16:21:31 +02:00
JoshuaBatty
271cc34f3f
cargo fmt fix for coreaudio
2020-05-27 13:28:18 +02:00
JoshuaBatty
10599ac826
fixed coreaudio buffersize errors
2020-05-27 13:15:44 +02:00
JoshuaBatty
7c1adce330
adds support for buffersizes in webaudio and emscripten
2020-05-27 12:05:55 +02:00
JoshuaBatty
935fa280d3
buffersizes api for wasapi
2020-05-26 14:55:55 +02:00
JoshuaBatty
4cd9d0bcec
finished implementing buffersizes for coreaudio
2020-05-26 14:55:55 +02:00
JoshuaBatty
9e660da433
implemented buffersizes for asio
2020-05-26 14:55:55 +02:00
JoshuaBatty
6edee6c6c2
coreaudio buffersize wip
2020-05-26 14:55:55 +02:00
JoshuaBatty
d72b546dca
gets buffersize range and allows to set buffersize for alsa
2020-05-26 14:55:55 +02:00
JoshuaBatty
7081c3bbd6
wip alsa buffersizes
2020-05-26 14:55:55 +02:00
mitchmindtree
5fa5ce593d
Merge pull request #415 from mitchmindtree/webaudio_config
...
Add implementation of supported stream configs for webaudio
2020-05-26 14:53:37 +02:00
ely-uf
d9136708e4
Fix CoreAudio warnings.
...
1) warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
2) warning: unnecessary `unsafe` block
3) warning: field is never read: `device_id`
2020-05-26 02:29:49 +03:00
mitchmindtree
f03fd69b65
[webaudio] Return Err instead of panicking on input device requests
...
Currently we are yet to implement input stream support for CPAL's
webaudio host. Instead of panicking, we should return an
error, None or empty iterator in order to let the user write well
behaved cross-platform apps and notify the user accordingly rather than
crashing.
2020-05-25 19:26:42 +02:00
mitchmindtree
1dfdeace25
Add implementation of supported stream configs for webaudio
...
The `supported_stream_configs` method now returns the range of
configurations that are required to be supported for
`BaseAudioContext.createBuffer()` as mentioned here:
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer
That is, valid stream configurations are now considered to be any
configuration that has:
- 1 <= channel_count <= 32 and
- 8khz <= sample_rate <= 96khz
- sample_format == f32
Closes #410 .
Closes #411 .
2020-05-25 13:19:52 +02:00
mitchmindtree
78e1796ba8
Add callback and playback timestamp implementation for webaudio stream
2020-05-22 14:35:29 +02:00
mitchmindtree
640a1d39ed
Rebase/Update webaudio PR for recent breaking changes
...
This rebases #372 , addressing the recent changes introduced by #397 , #395 , and #371 in the process.
TODO:
- [ ] Complete implementation of `callback` and `playback` timestamps in the output stream callback.
2020-05-21 16:16:23 +02:00
Damian Peckett
6f43fc2b60
Add a wasm-bindgen based generic Web Audio backend.
2020-05-06 13:44:00 +02:00