1 #ifndef UTILS_SOFA_SUPPORT_H
2 #define UTILS_SOFA_SUPPORT_H
11 struct MySofaDeleter
{
12 void operator()(MYSOFA_HRTF
*sofa
) { mysofa_free(sofa
); }
14 using MySofaHrtfPtr
= std::unique_ptr
<MYSOFA_HRTF
,MySofaDeleter
>;
16 // Per-field measurement info.
18 using uint
= unsigned int;
20 double mDistance
{0.0};
23 std::vector
<uint
> mAzCounts
;
26 const char *SofaErrorStr(int err
);
28 std::vector
<SofaField
> GetCompatibleLayout(const size_t m
, const float *xyzs
);
30 #endif /* UTILS_SOFA_SUPPORT_H */