45 std::shared_ptr<ISound> m_sound;
50 std::shared_ptr<HRTF> m_hrtfs;
55 std::shared_ptr<Source> m_source;
60 std::shared_ptr<ThreadPool> m_threadPool;
65 std::shared_ptr<FFTPlan> m_plan;
81 BinauralSound(std::shared_ptr<ISound> sound, std::shared_ptr<HRTF> hrtfs, std::shared_ptr<Source> source, std::shared_ptr<ThreadPool> threadPool, std::shared_ptr<FFTPlan> plan);
91 BinauralSound(std::shared_ptr<ISound> sound, std::shared_ptr<HRTF> hrtfs, std::shared_ptr<Source> source, std::shared_ptr<ThreadPool> threadPool);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
This class represents a sound that can sound different depending on its realtive position with the li...
Definition BinauralSound.h:40
std::shared_ptr< Source > getSource()
Retrieves the Source object being used.
void setSource(std::shared_ptr< Source > source)
Changes the Source object used to change the source position of the sound.
BinauralSound(std::shared_ptr< ISound > sound, std::shared_ptr< HRTF > hrtfs, std::shared_ptr< Source > source, std::shared_ptr< ThreadPool > threadPool, std::shared_ptr< FFTPlan > plan)
Creates a new ConvolverSound.
BinauralSound(std::shared_ptr< ISound > sound, std::shared_ptr< HRTF > hrtfs, std::shared_ptr< Source > source, std::shared_ptr< ThreadPool > threadPool)
Creates a new BinauralSound.
std::shared_ptr< HRTF > getHRTFs()
Retrieves the HRTF set being used.
void setHRTFs(std::shared_ptr< HRTF > hrtfs)
Changes the set of HRTFs used for convolution, it'll only affect newly created readers.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
This class represents a type of sound source and saves the necessary values for it.
Definition ISound.h:40