CAmbisonicEncoderDist Class Reference

Ambisonic encoder with distance cues. More...

#include <AmbisonicEncoderDist.h>

Inherits CAmbisonicEncoder.

Inheritance diagram for CAmbisonicEncoderDist:

Inheritance graph
[legend]
Collaboration diagram for CAmbisonicEncoderDist:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CAmbisonicEncoderDist (AmbInt nOrder=DEFAULT_ORDER, AmbInt b3D=DEFAULT_HEIGHT, AmbInt nSampleRate=DEFAULT_SAMPLERATE)
 ~CAmbisonicEncoderDist ()
virtual void Create (AmbInt nOrder, AmbInt b3D, AmbInt nSampleRate)
virtual void Reset ()
virtual void Refresh ()
void Process (AmbFloat *pfSrc, AmbInt nSamples, CBFormat *pBFDst)
void SetRoomRadius (AmbFloat fRoomRadius)
AmbFloat GetRoomRadius ()

Protected Attributes

AmbInt m_nSampleRate
AmbFloat m_fDelay
AmbInt m_nDelay
AmbInt m_nDelayBufferLength
AmbFloatm_pfDelayBuffer
AmbInt m_nIn
AmbInt m_nOutA
AmbInt m_nOutB
AmbFloat m_fRoomRadius
AmbFloat m_fInteriorGain
AmbFloat m_fExteriorGain

Detailed Description

Ambisonic encoder with distance cues.

This is similar to a normal the ambisonic encoder, but takes the source's distance into account, delaying the signal, adjusting its gain, and implementing "W-Panning"(interior effect). If distance is not an issue, then use CAmbisonicEncoder which is more efficient.


Constructor & Destructor Documentation

CAmbisonicEncoderDist::CAmbisonicEncoderDist ( AmbInt  nOrder = DEFAULT_ORDER,
AmbInt  b3D = DEFAULT_HEIGHT,
AmbInt  nSampleRate = DEFAULT_SAMPLERATE 
)

Constructor that allows for the format to be specified. If the format arguments are not specified, the values set for DEFAULT_ORDER, and DEFAULT_HEIGHT, will be used instead, and a default sample rate of DEFAULT_SAMPLERATE.

CAmbisonicEncoderDist::~CAmbisonicEncoderDist (  ) 


Member Function Documentation

void CAmbisonicEncoderDist::Create ( AmbInt  nOrder,
AmbInt  b3D,
AmbInt  nSampleRate 
) [virtual]

Re-create the object for the given configuration. Previous data is lost.

Reimplemented from CAmbisonicSource.

void CAmbisonicEncoderDist::Reset (  )  [virtual]

Resets members such as delay lines.

Reimplemented from CAmbisonicSource.

void CAmbisonicEncoderDist::Refresh (  )  [virtual]

Refreshes coefficients.

Reimplemented from CAmbisonicEncoder.

void CAmbisonicEncoderDist::Process ( AmbFloat pfSrc,
AmbInt  nSamples,
CBFormat pBFDst 
)

Encode mono stream to B-Format.

Reimplemented from CAmbisonicEncoder.

void CAmbisonicEncoderDist::SetRoomRadius ( AmbFloat  fRoomRadius  ) 

Set the radius of the intended playback speaker setup which is used for the interior effect (W-Panning).

AmbFloat CAmbisonicEncoderDist::GetRoomRadius (  ) 

Returns the radius of the intended playback speaker setup, which is used for the interior effect (W-Panning).


Member Data Documentation

AmbInt CAmbisonicEncoderDist::m_nSampleRate [protected]

AmbFloat CAmbisonicEncoderDist::m_fDelay [protected]

AmbInt CAmbisonicEncoderDist::m_nDelay [protected]

AmbInt CAmbisonicEncoderDist::m_nDelayBufferLength [protected]

AmbFloat* CAmbisonicEncoderDist::m_pfDelayBuffer [protected]

AmbInt CAmbisonicEncoderDist::m_nIn [protected]

AmbInt CAmbisonicEncoderDist::m_nOutA [protected]

AmbInt CAmbisonicEncoderDist::m_nOutB [protected]

AmbFloat CAmbisonicEncoderDist::m_fRoomRadius [protected]

AmbFloat CAmbisonicEncoderDist::m_fInteriorGain [protected]

AmbFloat CAmbisonicEncoderDist::m_fExteriorGain [protected]


The documentation for this class was generated from the following files:
Generated on Sat May 19 02:26:28 2007 for amblib by doxygen1.5.1-p1;  SourceForge.net Logo