AudioDSPTools icon indicating copy to clipboard operation
AudioDSPTools copied to clipboard

Enable Direct Loading of Raw IR Data from Memory

Open postcode-x opened this issue 1 year ago • 0 comments

These modifications allow the IR data to be loaded from memory, enabling it to be embedded in the application and loaded at runtime instead of from a file.

Example:

Assuming you have the following:

unsigned char IRData[72080] =
{
    0x52, 0x49, 0x46, 0x46, ...
};

You can now load it directly using:

std::make_unique<dsp::ImpulseResponse>(IRData, sizeof(IRData), sampleRate);

postcode-x avatar Nov 10 '24 19:11 postcode-x