Artem
e959c770e2
Compare the Windows devices by ID, allowing the user to detect if the default device has been changed.
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
Description
Languages
Rust
99.6%
C++
0.4%