Commit Graph

578 Commits

Author SHA1 Message Date
Johannes Lundberg e86ffce712 Fixes for *BSDs
Replace linux-only eventfd() with pipe() to enable use on *BSDs for alsa.
Add FreeBSD to supported OSes.
2017-07-13 15:59:40 +02:00
tomaka e1380e0d57 Merge pull request #155 from mitchmindtree/publish
Publish 0.4.5 with recent macOS fix
2017-04-28 17:25:29 +02:00
mitchmindtree 381d599155 Publish 0.4.5 2017-04-29 01:04:13 +10:00
tomaka 95e3bc41e6 Merge pull request #154 from shockham/master
Fix for loop in EventLoop::run optimised out in a release build on macOS
2017-04-20 13:49:45 +02:00
shockham 97657fae4a SampleStream also holds on to the AudioUnit so it is not dropped 2017-04-19 11:44:42 +01:00
shockham 8cfe176e52 Fix for loop in EventLoop::run being optimised out in a release build on macOS 2017-04-07 11:06:00 +01:00
tomaka 22884f70c3 Merge pull request #153 from plietar/patch-2
Bump alsa-sys version number
2017-03-06 22:33:41 +01:00
Paul Liétar 9c20ab27a7 Bump alsa-sys version number
See #152
2017-03-06 15:57:18 +00:00
tomaka 1e6e027042 Merge pull request #152 from plietar/patch-1
Mark alsa-sys as linking to alsa
2017-02-24 20:33:17 +01:00
Paul Lietar 321673278f Mark alsa-sys as linking to alsa
The build script requires pkg-config, which isn't available when cross compiling.
Mark alsa-sys as linking to alsa allows cargo configuration to bypass the build script.

cf http://doc.crates.io/build-script.html#the-links-manifest-key
2017-02-24 16:57:44 +00:00
tomaka 37cc8f5e64 Merge pull request #149 from tomaka/deps
Simplify the Cargo.toml
2017-02-10 10:06:30 +01:00
Pierre Krieger 263039412e Simplify the Cargo.toml 2017-02-10 09:56:53 +01:00
tomaka 89b55e9eda Merge pull request #150 from tomaka/no-publish
Stop publishing on gh-pages
2017-02-10 09:56:00 +01:00
Pierre Krieger 937f301f3d Stop publishing on gh-pages 2017-02-10 09:45:41 +01:00
tomaka 80c008c0a0 Merge pull request #146 from nchashch/sw_params_set_avail_min-fix
alsa: Pass period instead of buffer to snd_pcm_sw_params_set_avail_min
2017-02-04 08:46:57 +01:00
Nikita Chashchinskii 5c33787f48 Bump crate version to 0.4.4 2017-02-04 08:20:21 +03:00
Nikita Chashchinskii 0f8babe8bd Pass period instead of buffer to snd_pcm_sw_params_set_avail_min
* Also bump version from 0.4.2 to 0.4.3
2017-02-04 08:20:21 +03:00
tomaka 9dca830d35 Merge pull request #147 from jwestfall69/version-bump
bump crate to 0.4.3
2017-02-02 08:56:40 +01:00
jwestfall d167bbc206 bump crate to 0.4.3 2017-02-01 20:51:41 -08:00
tomaka 13cc45234c Merge pull request #145 from jwestfall69/alsa-avail-min-fix
alsa: set sw_params_set_avail_min based on get_params buffer size
2017-01-25 07:11:48 +01:00
jwestfall 7c03219451 alsa: set sw_params_set_avail_min based on get_params buffer size
snd_pcm_sw_params_set_avail_min was being hardcoded to 4096, which
seems to be problematic for lower sample rates.  This update sets
the value to the buffer size as supplied by snd_pcm_get_params(),
which is what alsa own sample code does.

This should fix https://github.com/tomaka/cpal/issues/142
2017-01-23 16:10:44 -08:00
tomaka 76f173217c Merge pull request #143 from yupferris/master
Add coreaudio-rs dependency for i686-apple-darwin
2017-01-19 17:04:06 +01:00
ferris 6e8f51de09 Bump crate version to 0.4.2 2017-01-19 16:06:17 +01:00
ferris 929bc1b8be Add coreaudio-rs dependency for i686-apple-darwin
Fixes build for 32-bit mac
2017-01-19 14:51:50 +01:00
tomaka c422931255 Merge pull request #140 from tomaka/deprecated
Mark deprecated functions as deprecated
2016-11-16 08:38:12 +01:00
Pierre Krieger c291ab13f1 Mark deprecated functions as deprecated 2016-11-16 08:32:02 +01:00
tomaka 871352ce60 Merge pull request #139 from tomaka/win-fix
Fix compilation on windows
2016-11-16 08:26:48 +01:00
Pierre Krieger 4511ac5b56 Publish 0.4.1 2016-11-16 08:18:14 +01:00
Pierre Krieger a26a9f5337 Fix compilation on windows 2016-11-16 08:17:11 +01:00
tomaka d6f22f4ceb Merge pull request #136 from HybridEidolon/coreaudio-play-pause
[osx] Implement play/pause for coreaudio
2016-10-18 08:33:24 +02:00
Ronald Kinard b44a2ab515 [osx] Implement play/pause for coreaudio 2016-10-18 01:20:40 -05:00
tomaka bb65200745 Merge pull request #135 from thiolliere/alsa_play_pause
impl play and pause for ALSA
2016-10-02 16:38:25 +02:00
thiolliere 25bb025a9a arc not necessary 2016-10-02 14:24:30 +02:00
thiolliere 5c86eec4f3 line not necessary 2016-10-02 14:21:33 +02:00
thiolliere 1b0c9f2c54 syntax: space after comma 2016-10-02 14:19:58 +02:00
thiolliere f822631bc4 impl play and pause for ALSA
snd_pcm_pause could have been used but not all hardware implement it, so
I propose not to use it.

In this implementation:

there are two kind of scheduling: wait for resume signal and wait for
pcm to be available

if the stream is paused then it return notready and wait for resume

the event loop is different as it manages descriptors corresponding to
voices according to the nature of the scheduling.

there is still a FIXME: in voice.play the is signal is send even if
the event loop wasn't waiting for resume.
It doesn't seem to create any issue. But it happens when you write
voice.pause();voice.play();
2016-10-02 13:29:01 +02:00
tomaka f68509982a Merge pull request #134 from tomaka/0.4.0
Publish 0.4.0
2016-10-01 10:37:21 +02:00
Pierre Krieger d0610c14f0 Publish 0.4.0 2016-10-01 10:30:38 +02:00
tomaka a00cf67900 Merge pull request #131 from tomaka/tryfix-osx
Try fix the OSX code with futures
2016-10-01 10:28:20 +02:00
tomaka 2d75e2eaf5 Merge pull request #133 from mitchmindtree/tryfix-osx
Do not lock inner twice. Fixes bug in osx futures 0.1.1 update.
2016-10-01 10:23:31 +02:00
mitchmindtree f71a95cd0e Do not lock inner twice. Fixes bug in osx futures 0.1.1 update. 2016-10-01 18:19:27 +10:00
Pierre Krieger 869af718a2 Try fix the OSX code with futures 2016-10-01 09:21:29 +02:00
tomaka bb00607488 Merge pull request #132 from tomaka/try-travis-osx
Try enabling travis for OSX
2016-10-01 09:16:23 +02:00
Pierre Krieger afc2bebe67 Try enabling travis for OSX 2016-10-01 09:12:36 +02:00
Pierre Krieger 375d669ce4 Force futures 0.1.1 2016-10-01 09:09:50 +02:00
tomaka aa97c76ecf Merge pull request #130 from thiolliere/local_branch
update to futures 0.1.1: alsa wasapi
2016-10-01 08:59:39 +02:00
thiolliere e031025abe update to futures 0.1.1: alsa wasapi 2016-10-01 00:44:22 +02:00
tomaka ad360d2a32 Merge pull request #128 from tomaka/tomaka-patch-1
Bump to 0.3.1
2016-08-20 07:40:07 +02:00
tomaka e5f127b460 Bump to 0.3.1 2016-08-20 07:35:53 +02:00
tomaka ba924f6582 Merge pull request #127 from Bobo1239/master
Fix #126
2016-08-19 22:11:17 +02:00