1 unstable release
Uses new Rust 2024
new 0.1.1 | Apr 3, 2025 |
---|
#9 in #gain
Used in aloe-dsp
785KB
7.5K
SLoC
Aloe Audio Source Player
Aloe Audio Source Player is a robust Rust crate designed to facilitate continuous audio streaming from an audio source to an AudioIODevice
. It acts as an AudioIODeviceCallback
, enabling seamless attachment to output devices and efficient audio streaming from an AudioSource
. Designed for advanced audio management and manipulation, it offers precise control over audio playback and gain settings.
Features
- Continuous Audio Streaming: Facilitates uninterrupted audio flow from sources to devices.
- Flexible Source Management: Easily changeable audio sources with resource management.
- Gain Control: Fine-tuned gain adjustments for optimal audio output.
- Device Compatibility: Integrates seamlessly with various
AudioIODevice
interfaces.
Usage
This crate is initialized via the AudioSourcePlayer
struct, offering a straightforward interface for audio device callbacks. Observe proper setup with prepare_to_play
, and ensure gain is correctly applied using set_gain
.
use aloe_audio_source_player::AudioSourcePlayer;
let mut player = AudioSourcePlayer::default();
player.prepare_to_play(44100.0, 1024);
player.set_gain(0.75);
// Attach AudioSource and AudioIODevice as needed
Installation
Add the following line to your Cargo.toml
under [dependencies]
:
aloe-audio-source-player = "0.1.0"
License
Aloe Audio Source Player is licensed under the GPL-3.0 license.
Disclaimer
This README.md file was generated by an AI model and while it strives for accuracy, please refer to the official documentation for the most reliable information.
This crate is a translation of the JUCE module.
JUCE is a c++ software framework for developing high performance audio applications.
Usage falls under the GPLv3 as well as the JUCE commercial license.
See github.com/juce-framework/JUCE and the JUCE license page for details.
This crate is in the process of being translated from c++ to rust. For progress updates, please see the workspacer rust project. designed specifically for rust projects.
Dependencies
~28–38MB
~616K SLoC