SAL
A C++ library for spatial audio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
sal::SphericalHeadMic Class Reference

#include <sphericalheadmic.h>

Inheritance diagram for sal::SphericalHeadMic:
sal::BinauralMic sal::StereoMicrophone sal::Microphone

Public Member Functions

 SphericalHeadMic (const mcl::Point position, const mcl::Quaternion orientation, const Angle ears_angle, const Length sphere_radius, const Int ir_length, const Time sampling_frequency, const Int update_length=0)
 
virtual ~SphericalHeadMic ()
 
- Public Member Functions inherited from sal::BinauralMic
 BinauralMic (const mcl::Point &position, const mcl::Quaternion orientation, const Int update_length, const HeadRefOrientation reference_orientation=HeadRefOrientation::standard)
 
void SetUpdateLength (Int update_length) noexcept
 
void SetBypass (bool bypass) noexcept
 
virtual void Reset () noexcept
 
bool IsCoincident () const noexcept
 
Int num_channels () const noexcept
 
virtual ~BinauralMic ()
 
virtual void AddPlaneWaveRelative (const Sample *signal, const Int num_samples, const mcl::Point &point, const Int wave_id, Buffer &output_buffer) noexcept
 
- Public Member Functions inherited from sal::StereoMicrophone
 StereoMicrophone (mcl::Point position, mcl::Quaternion orientation)
 
virtual ~StereoMicrophone ()
 
- Public Member Functions inherited from sal::Microphone
 Microphone (mcl::Point position, mcl::Quaternion orientation=mcl::Quaternion::Identity())
 
mcl::Point position () const noexcept
 
virtual void SetPosition (const mcl::Point &position) noexcept
 
mcl::Quaternion orientation () const noexcept
 
virtual void SetOrientation (const mcl::Quaternion &orientation) noexcept
 
void SetHandedness (const mcl::Handedness handedness) noexcept
 
void AddPlaneWave (const MonoBuffer &signal, const mcl::Point &point, Buffer &output_buffer) noexcept
 
void AddPlaneWave (const Sample *input_data, const Int num_samples, const mcl::Point &point, Buffer &output_buffer) noexcept
 
void AddPlaneWave (const Sample input_sample, const mcl::Point &point, Buffer &output_buffer) noexcept
 
void AddPlaneWave (const MonoBuffer &input_buffer, const mcl::Point &point, const Int wave_id, Buffer &output_buffer) noexcept
 
void AddPlaneWave (const Sample input_sample, const mcl::Point &point, const Int wave_id, Buffer &output_buffer) noexcept
 
virtual void AddPlaneWave (const Sample *input_data, const Int num_samples, const mcl::Point &point, const Int wave_id, Buffer &output_buffer) noexcept
 
virtual bool IsOmni () const noexcept
 
mcl::Point GetRelativePoint (const mcl::Point &point) const noexcept
 
virtual ~Microphone ()
 
virtual void AddPlaneWaveRelative (const MonoBuffer &signal, const mcl::Point &point, const Int wave_id, Buffer &output_buffer) noexcept
 

Static Public Member Functions

static bool Test ()
 

Additional Inherited Members

- Protected Attributes inherited from sal::BinauralMic
HeadRefOrientation reference_orientation_
 

Detailed Description

This object implements the spherical head model proposed by Duda et al in the article "Range dependence of the response of a spherical head model"

Constructor & Destructor Documentation

sal::SphericalHeadMic::SphericalHeadMic ( const mcl::Point  position,
const mcl::Quaternion  orientation,
const Angle  ears_angle,
const Length  sphere_radius,
const Int  ir_length,
const Time  sampling_frequency,
const Int  update_length = 0 
)
virtual sal::SphericalHeadMic::~SphericalHeadMic ( )
inlinevirtual

Member Function Documentation

bool sal::SphericalHeadMic::Test ( )
static

The documentation for this class was generated from the following files: