Skip to main content

forge_audio/
lib.rs

1//! # forge-audio
2//!
3//! Zero-allocation, lock-free audio architecture for real-time DSP,
4//! game engines, and WebAssembly.
5//!
6//! ## Architecture
7//!
8//! - **Lock-free mixer** with crossbeam zero-contention design
9//! - **120-frame rollback buffer** with 18-byte packed diffs and Blake3 checksums
10//! - **Double-buffer VRAM staging** for CPU→GPU audio visualization
11//! - **Integer-deterministic audio** for networked game engines
12//! - **Phase-aligned beat sync** for tempo-locked mixing
13//! - **~269KB stack-allocated footprint** — no GC, no heap on the hot path
14//!
15//! ## License
16//!
17//! This crate is dual-licensed:
18//!
19//! - **AGPLv3** for open-source and non-commercial use
20//! - **Commercial B2B License** for proprietary/SaaS/cloud integration
21//!
22//! Contact: dev@deveraux.dev
23
24pub mod stubs;
25pub mod diff_pool;
26pub mod dsp;
27pub mod engine;
28pub mod graph;
29pub mod limiter;
30pub mod metering;
31// pub mod mixer; // Full mixer requires Commercial B2B License
32// pub mod params; // Full parameter system requires Commercial B2B License
33// pub mod phase_sync; // Full phase sync requires Commercial B2B License
34pub mod realtime;
35pub mod rt_safety;
36pub mod viz_buffer;