Skip to main content

Crate trem_cpal

Crate trem_cpal 

Source
Expand description

§trem-cpal — real-time audio backend

Drives a trem::graph::Graph from a cpal output stream with lock-free command/notification bridging between the audio thread and the UI.

The Bridge / AudioBridge pair communicates via an rtrb ring buffer. The UI sends Commands (play, pause, stop, set parameter, load events), and the audio callback sends back Notifications (beat position, peak meters).

Re-exports§

pub use bridge::create_bridge;
pub use bridge::AudioBridge;
pub use bridge::Bridge;
pub use bridge::Command;
pub use bridge::Notification;
pub use bridge::ScopeFocus;
pub use bridge::ScopeSnapshot;
pub use driver::AudioEngine;

Modules§

bridge
Lock-free UI ↔ audio communication using rtrb ring buffers.
driver
cpal output stream driving a trem::graph::Graph with crate::bridge command/notification bridging.