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
|
/*############################################################################*/
/*# #*/
/*# Ambisonic C++ Library #*/
/*# CAmbisonicSpeaker - Ambisonic Speaker #*/
/*# Copyright © 2007 Aristotel Digenis #*/
/*# #*/
/*# Filename: AmbisonicSpeaker.h #*/
/*# Version: 0.1 #*/
/*# Date: 19/05/2007 #*/
/*# Author(s): Aristotel Digenis #*/
/*# Licence: MIT #*/
/*# #*/
/*############################################################################*/
#ifndef _AMBISONIC_SPEAKER_H
#define _AMBISONIC_SPEAKER_H
#include "AmbisonicSource.h"
#include "BFormat.h"
/// Ambisonic speaker
/** This is a speaker class to be used in the decoder. */
class CAmbisonicSpeaker : public CAmbisonicSource
{
public:
CAmbisonicSpeaker();
~CAmbisonicSpeaker();
/**
Re-create the object for the given configuration. Previous data is
lost. The last argument is not used, it is just there to match with
the base class's form. Returns true if successful.
*/
virtual bool Configure(unsigned nOrder, bool b3D, unsigned nMisc);
/**
Recalculate coefficients, and apply normalisation factors.
*/
void Refresh();
/**
Decode B-Format to speaker feed.
*/
void Process(CBFormat* pBFSrc, unsigned nSamples, float* pfDst);
};
#endif // _AMBISONIC_SPEAKER_H
|