16#define HEPHAUDIO_SPATIALIZER_AZIMUTH_MIN 0
22#define HEPHAUDIO_SPATIALIZER_AZIMUTH_MAX 360
28#define HEPHAUDIO_SPATIALIZER_ELEVATION_MIN -90
34#define HEPHAUDIO_SPATIALIZER_ELEVATION_MAX 90
51 Spatializer(
const std::filesystem::path& sofaFilePath, uint32_t sampleRate);
75 void OpenSofaFile(
const std::filesystem::path& sofaFilePath, uint32_t sampleRate);
111 static std::string GetErrorString(
int errorCode);
#define HEPH_API
Definition HephShared.h:132
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
implements reading the SOFA files and HRTF interpolation for spatialization.
Definition Spatializer.h:43
void Process(AudioBuffer &buffer, float azimuth_deg, float elevation_deg, const Heph::DoubleBuffer &windowBuffer)
size_t GetFrameCount() const
void OpenSofaFile(const std::filesystem::path &sofaFilePath, uint32_t sampleRate)
uint32_t GetSampleRate() const
void Process(AudioBuffer &buffer, float azimuth_deg, float elevation_deg)
buffer for storing doubles.
Definition DoubleBuffer.h:14