Skip to content

Add support for embedding NAM models and IR files in session data #43

Description

@dmt-hub

Would love to have this option available in NeuralRack.

(from the official NAM repo) :

Features

Automatic Embedding: When saving a session, NAM models and IR files are encoded and embedded in the plugin state
Automatic Extraction: When loading a session, embedded files are extracted to temporary files and loaded automatically
Backward Compatible: Sessions without embedded data continue to work with file paths as before
Cross-Platform: Designed to work on Windows, macOS, and Linux

Benefits

Share sessions without worrying about missing model/IR files
Old projects remain playable even if original files are moved/deleted
Team members can open sessions without manual file management

Implementation

Modified SerializeState() to embed file contents in session data
Modified UnserializeState() to detect and extract embedded files automatically
Added _StageModelFromData() and _StageIRFromData() helper methods for loading from memory
Maintain backward compatibility with file path references
Update AudioDSPTools submodule to include SIGFPE fix (depends on sdatkinson/AudioDSPTools#24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions