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
|
#ifndef BINAURALIZER_H
#define BINAURALIZER_H
#include <vector>
#include "AmbisonicCommons.h"
#include "BFormat.h"
#include "AmbisonicSpeaker.h"
#include "AmbisonicBinauralizer.h"
/** Binaural decoder. */
class SpeakersBinauralizer : public CAmbisonicBinauralizer
{
public:
SpeakersBinauralizer();
bool Configure(unsigned nSampleRate,
unsigned nBlockSize,
CAmbisonicSpeaker *speakers,
unsigned nSpeakers,
unsigned& tailLength,
std::string HRTFPath = "");
void Process(float** pBFSrc, float** ppfDst);
protected:
unsigned m_nSpeakers;
virtual void AllocateBuffers();
};
#endif // BINAURALIZER_H
|