CH·21 Spatial & ambisonics
verified 2026-05-29

libmysofa active

Christian Hoene vunknown added 2026-05-29 verified 2026-05-29

[Use when]

You need to read and process AES SOFA files containing HRTF data for spatial audio rendering in C-based applications.

Engines
S Standalone
License

BSD-3-Clause

Pricing

Free

Last verified

2026-05-29

Added

2026-05-29

about

libmysofa is a C library for reading and processing Head-Related Transfer Function (HRTF) data stored in AES SOFA files conforming to the AES69-2015 standard. It provides functions to load SOFA files, extract HRTF filters for specific spatial coordinates, and convert between Cartesian and spherical coordinate systems.

The library handles automatic normalization of HRTF data, nearest-neighbor interpolation for arbitrary listener positions, and efficient caching of multiple SOFA files. It supports both integer and floating-point filter extraction with configurable sample rates and neighbor search parameters.

Designed for integration into spatial audio engines and renderers, libmysofa offers both simple and advanced APIs for developers who need direct access to HRTF data without implementing SOFA parsing from scratch.