cpal
cpal copied to clipboard
Cross-platform audio I/O library in pure Rust
As a result of https://github.com/RustAudio/cpal/pull/506, when iterating through `host.{devices,input_devices,output_devices}()`, each `Device` holds its corresponding `alsa::PCM`/`snd_pcm_t`s open until dropped. This causes problems in practice: - ALSA often won't let you `snd_pcm_open`...
# Commit Description This commit fixes a bug that occurs in the ASIO host on windows. It commonly manifests in a message about Data Execution Prevention. From what I can...
This is a draft. ## Overview and speculation I'm told that JACK clients are fed input and output buffers synchronously, by jackd (the audio server), and that JACK's application-facing API...
Running cpal 7ff54f17a733b18b6c457e240f01e43f2c910632. When I run `cargo run --example record_wav -- front:CARD=Generic,DEV=0`, ``` Compiling cpal v0.13.4 (/home/nyanpasu64/code/cpal) Finished dev [unoptimized + debuginfo] target(s) in 0.49s Running `target/debug/examples/record_wav 'front:CARD=Generic,DEV=0'` ALSA lib...
While looking for a solution to #472, exposed the `as_nanos` method of `StreamInstant`, and also added a method `as_secs`. My expectation is that the `playback` timestamp, representing the playback time...
We're working on an [audio editor / DAW](https://github.com/RustyDAW/multitrack-audio-editor), and full duplex audio IO is a fairly important feature for such software that is currently missing from CPAL. For reference, duplex...
Hello, I'm using an input source which contains **2 channels (Left + Right)**. I am able to get both or just one (channel 1) by using `config.channels = 1;` Is...
cpal provides its own sample conversions, with limitations like no I24 support. dasp-sample does all this and more, so why duplicate something that already exists?
I'm getting the following errors when enumerating devices on OSX. Both failure cases are 2 ch outputs set for 16-bit Integer, as viewed via the Mac `Audio MIDI Setup` app....
Upgrading cpal in https://github.com/marin-m/SongRec to 0.13.4 causes an ALSA error to appear: ``` fuji@antonovka /tmp/SongRec $ cargo run Compiling songrec v0.2.1 (/tmp/SongRec) Finished dev [unoptimized + debuginfo] target(s) in 12.57s...