mitchmindtree
960b1d5a40
Remove unnecessary panic! from OutputBuffer Deref impl
Since #269 this `panic!` is certainly unnecessary as `InputBuffer` and `OutputBuffer` are a thin wrapper around a slice. That said, I'm struggling to understand exactly why this `panic!` was necessary in the first place. This closes #228.
Update to a more general Device and Stream API. Add support for input streams (E.g. microphone). Add default format methods. (#201)
CPAL - Cross-Platform Audio Library
Low-level library for audio input and output in pure Rust.
This library currently supports the following:
- Enumerate all available audio devices.
- Get the current default input and output devices.
- Enumerate known supported input and output stream formats for a device.
- Get the current default input and output stream formats for a device.
- Build and run input and output PCM streams on a chosen device with a given stream format.
Currently supported backends include:
- Linux (via ALSA)
- Windows
- macOS (via CoreAudio)
- iOS (via CoreAudio)
- Emscripten
Note that on Linux, the ALSA development files are required. These are provided
as part of the libasound2-dev
package on Debian and Ubuntu distributions and
alsa-lib-devel
on Fedora.
Description
Languages
Rust
99.6%
C++
0.4%