15#define HEPHAUDIO_SPATIALIZER_AZIMUTH_MIN (0)
21#define HEPHAUDIO_SPATIALIZER_AZIMUTH_MAX (360)
27#define HEPHAUDIO_SPATIALIZER_ELEVATION_MIN (-90)
33#define HEPHAUDIO_SPATIALIZER_ELEVATION_MAX (90)
44 using FrequencyDomainEffect::Process;
124 Spatializer(
const std::filesystem::path& filePath, uint32_t sampleRate,
float azimuth,
float elevation,
size_t hopSize,
const Window& wnd);
129 virtual std::string
Name()
const override;
#define HEPH_API
Definition HephShared.h:124
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for effects that are computed in the frequency domain.
Definition FrequencyDomainEffect.h:16
applies 3D audio spatialization using SOFA files.
Definition Spatializer.h:42
std::filesystem::path filePath
Definition Spatializer.h:63
virtual void Process(AudioBuffer &buffer, size_t startIndex, size_t frameCount) override
virtual void CloseSofaFile()
size_t hrtfSize
Definition Spatializer.h:75
std::array< Heph::ComplexBuffer, 2 > transferFunctions
Definition Spatializer.h:93
float azimuth
Definition Spatializer.h:51
virtual void OpenSofaFile(const std::filesystem::path &filePath)
virtual void SetAzimuth(float azimuth)
virtual void SetSampleRate(uint32_t sampleRate)
float elevation
Definition Spatializer.h:57
virtual std::string Name() const override
Spatializer(const std::filesystem::path &filePath, uint32_t sampleRate, float azimuth, float elevation, size_t hopSize, const Window &wnd)
bool updateTransferFunctions
Definition Spatializer.h:87
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
virtual void OpenDefaultFile()
uint32_t hrtfSampleRate
Definition Spatializer.h:81
virtual void SetWindow(const Window &wnd) override
Spatializer(float azimuth, float elevation, size_t hopSize, const Window &wnd)
virtual uint32_t GetSampleRate() const
MYSOFA_EASY * pEasy
Definition Spatializer.h:69
virtual float GetAzimuth() const
virtual void SetElevation(float elevation)
virtual size_t GetHrtfSize() const
virtual std::string GetErrorString(int errorCode) const
gets the error message that corresponds to the provided code.
virtual float GetElevation() const
Spatializer(size_t hopSize, const Window &wnd)
base class for windows.
Definition Window.h:14