Crate onedrop_engine

Crate onedrop_engine 

Source
Expand description

§onedrop-engine

Complete Milkdrop visualization engine assembling parser, evaluator, and renderer.

This crate provides a high-level API for running Milkdrop visualizations, handling preset loading, audio analysis, equation evaluation, and rendering.

Re-exports§

pub use audio::AudioAnalyzer;
pub use audio_input::AudioAnalysisInput;
pub use audio_input::AudioInput;
pub use audio_input::AudioInputError;
pub use audio_input::AudioSource;
pub use audio_input::SourceKind;
pub use audio_input::list_sources;
pub use beat_detection::BeatDetectionMode;
pub use beat_detection::BeatDetector;
pub use beat_detection::PresetChange;
pub use default_preset::default_preset;
pub use engine::EngineConfig;
pub use engine::FrameProfile;
pub use engine::MilkEngine;
pub use engine::QualityPreset;
pub use error::EngineError;
pub use error::Result;
pub use fft::FFTAnalyzer;
pub use history::ColorState;
pub use history::History;
pub use history::MashUpState;
pub use history::MashUpType;
pub use messages::MessageManager;
pub use messages::MessageRenderInstance;
pub use mpris::MprisPoller;
pub use mpris::MprisSnapshot;
pub use preset_manager::DEFAULT_HISTORY_SIZE;
pub use preset_manager::DEFAULT_RATING;
pub use preset_manager::PresetManager;
pub use preset_manager::SelectionMode;
pub use preset_manager::TransitionState;
pub use safe_loader::SafePresetLoader;
pub use sprites::SpriteBlendMode;
pub use sprites::SpriteManager;
pub use sprites::SpriteRenderInstance;
pub use transition::Transition;
pub use transition::TransitionManager;
pub use transition::TransitionMode;
pub use warp_eval::WarpExecutor;

Modules§

audio
Audio processing and analysis.
audio_input
Real-time audio input capture using cpal.
beat_detection
Beat detection for automatic preset changing.
default_preset
Default preset for fallback when loading fails.
engine
Main Milkdrop engine implementation.
error
Error types for the onedrop-engine crate.
fft
FFT-based audio analysis for advanced frequency detection.
history
History management for presets, mash-ups, and colors.
messages
Text overlay (MILK_MSG.INI) state and lifecycle.
mpris
MPRIS2 progress reader.
preset_manager
Preset management and transitions.
safe_loader
Safe preset loading with error recovery.
sprites
Sprite (MILK_IMG.INI) state and lifecycle.
transition
Preset transition system with blending.
warp_eval
Per-vertex warp evaluation.

Structs§

AudioLevels
Audio levels.
MeshSize
Concrete cols × rows dimensions resolved from a MeshQuality.
MilkPreset
A complete Milkdrop preset.
MotionParams
Motion parameters.
RenderConfig
Renderer configuration.
RenderState
Render state containing dynamic parameters.
WarpMesh
Regular cols × rows warp grid.
WarpVertex
One vertex consumed by the warp shader.
WaveParams
Wave parameters mirrored from a MilkPreset every frame.

Enums§

MeshQuality
MilkDrop-style warp-mesh quality presets.