Migrate the .beam container to SQLite and stream media from it instead of decoding whole files into RAM on import/load. Container & large files: - SQLite .beam container (beam_archive) with in-place transactional saves and an incremental BlobReader; supports both packed (chunked blobs) and referenced (external path) media, with a user preference + first-import prompt for files over the large-media threshold. Audio streaming: - Stream packed compressed audio on load via an inversion-of-control blob factory (AudioBlobSourceFactory): daw-backend defines the trait, core implements it over BlobReader, so the audio engine stays container-agnostic. - Bulk-activate disk streaming for all loaded clips after SetProject. - Sample-accurate compressed seek (SeekMode::Accurate; Coarse mislands on VBR). Video: - Video frames decoded/streamed on demand; thumbnails generated asynchronously on a dedicated decoder so import/load never blocks the UI. - The video's audio track is streamed on demand via an ffmpeg VideoAudioReader as a separate editable AudioClip (no /tmp WAV extraction). Waveform overview: - Streaming min/max LOD pyramid (waveform_pyramid), bounded memory, configurable floor B; serialized into the container and restored on load (or generated in the background from the packed blob when absent), so no re-decode on reload. - GPU min/max upload path; integer-LOD textureLoad fixes zoom-dependent wobble.
35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
pub mod automation;
|
|
pub mod bpm_detector;
|
|
pub mod buffer_pool;
|
|
pub mod clip;
|
|
pub mod disk_reader;
|
|
pub mod engine;
|
|
pub mod export;
|
|
pub mod metronome;
|
|
pub mod midi;
|
|
pub mod midi_pool;
|
|
pub mod node_graph;
|
|
pub mod pool;
|
|
pub mod project;
|
|
pub mod recording;
|
|
pub mod sample_loader;
|
|
pub mod track;
|
|
pub mod waveform_cache;
|
|
pub mod waveform_pyramid;
|
|
|
|
pub use automation::{AutomationLane, AutomationLaneId, AutomationPoint, CurveType, ParameterId};
|
|
pub use buffer_pool::BufferPool;
|
|
pub use clip::{AudioClipInstance, AudioClipInstanceId, Clip, ClipId};
|
|
pub use disk_reader::{AudioBlobSourceFactory, MediaByteSource};
|
|
pub use engine::{AudioClipSnapshot, Engine, EngineController};
|
|
pub use export::{export_audio, ExportFormat, ExportSettings};
|
|
pub use metronome::Metronome;
|
|
pub use midi::{MidiClip, MidiClipId, MidiClipInstance, MidiClipInstanceId, MidiEvent};
|
|
pub use midi_pool::MidiClipPool;
|
|
pub use pool::{AudioClipPool, AudioFile as PoolAudioFile, AudioPool, AudioStorage, PcmSampleFormat};
|
|
pub use project::Project;
|
|
pub use recording::RecordingState;
|
|
pub use sample_loader::{load_audio_file, SampleData};
|
|
pub use track::{AudioTrack, Metatrack, MidiTrack, RenderContext, Track, TrackId, TrackNode};
|
|
pub use waveform_cache::{ChunkPriority, DetailLevel, WaveformCache};
|