Cross-platform audio in Rust
Go to file
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
alsa-sys Bump alsa-sys to 0.1 2016-08-14 20:16:34 +02:00
examples impl play and pause for ALSA 2016-10-02 13:29:01 +02:00
src impl play and pause for ALSA 2016-10-02 13:29:01 +02:00
.gitignore OSX support via the Apple Core Audio, Audio Unit C API. Only supports f32 so far. 2015-02-28 06:05:24 +11:00
.travis.yml Try enabling travis for OSX 2016-10-01 09:12:36 +02:00
Cargo.toml Publish 0.4.0 2016-10-01 10:30:38 +02:00
README.md Publish 0.4.0 2016-10-01 10:30:38 +02:00
appveyor.yml Fix the appveyor build 2014-12-23 15:28:38 +01:00

README.md

CPAL - Cross-platform audio library

Documentation

[dependencies]
cpal = "0.4.0"

Low-level library for audio playback in pure Rust.

This library allows you to open a channel with the audio device of the user's machine, and send PCM data to it.