Skip to content

Actually handle failure to load SOFA file #88

@ePirat

Description

@ePirat

Currently when a SOFA file fails to load, there is only an error message printed but the caller is not informed of the failure in any way, which makes it impossible to know programmatically that something went wrong.

std::cout << "Could not load the SOFA HRTF." << std::endl;

When the caller continues with the processing as it does not know about the error, the program crashes or aborts with the following assertion:

Assertion failed: (gains.size() == m_nCh), function calculateGains, file DirectSpeakersGainCalc.cpp, line 112.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions