1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*############################################################################*/
/*# #*/
/*# Ambisonic C++ Library #*/
/*# CAmbisonicMicrophone - Ambisonic Microphone #*/
/*# Copyright © 2007 Aristotel Digenis #*/
/*# #*/
/*# Filename: AmbisonicMicrophone.h #*/
/*# Version: 0.1 #*/
/*# Date: 19/05/2007 #*/
/*# Author(s): Aristotel Digenis #*/
/*# Licence: MIT #*/
/*# #*/
/*############################################################################*/
#ifndef _AMBISONIC_MICROPHONE_H
#define _AMBISONIC_MICROPHONE_H
#include "AmbisonicSource.h"
#include "BFormat.h"
/// Ambisonic microphone
/** This is a microphone class. It is similar to ::CAmbisonicSpeaker, with the
addition of having directivity control. */
class CAmbisonicMicrophone : public CAmbisonicSource
{
public:
CAmbisonicMicrophone();
~CAmbisonicMicrophone();
/**
Recalculate coefficients, and apply normalisation factors.
*/
void Refresh();
/**
Decode B-Format to speaker feed.
*/
void Process(CBFormat* pBFSrc, unsigned nSamples, float* pfDst);
/**
Set the microphone's directivity.
*/
void SetDirectivity(float fDirectivity);
/**
Get the microphone's directivity.
*/
float GetDirectivity();
protected:
float m_fDirectivity;
};
#endif // _AMBISONIC_MICROPHONE_H
|