sdatkinson / AudioDSPTools

A library of basic audio DSP tools
MIT License
35 stars 10 forks source link

Enable Direct Loading of Raw IR Data from Memory #18

Open postcode-x opened 1 week ago

postcode-x commented 1 week ago

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);