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