Skip to main content

dreamwell_media/
lib.rs

1//! Dreamwell Media v1.0.0 — audio/video decode and format conversion.
2//!
3//! Provides a unified media decoding API with optional FFmpeg backend.
4//! Audio files are decoded to mono f32 PCM samples at a target sample rate,
5//! ready for consumption by the audio system (oddio spatial backend).
6//!
7//! Clean Compute rules:
8//! - All decode happens on the cold path (load time, never per-frame)
9//! - Decoded samples are pre-allocated and owned (no streaming in v1.0.0)
10//! - No hot-path heap churn — decoded audio is Arc'd and shared
11
12pub mod audio_decode;
13
14#[cfg(feature = "ffmpeg")]
15pub mod ffmpeg_decode;
16
17pub use audio_decode::{decode_audio_file, AudioBuffer, AudioDecodeError};