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
|
/*############################################################################*/
/*# #*/
/*# Ambisonic C++ Library #*/
/*# CAmbisonicBase - Ambisonic Base #*/
/*# Copyright © 2007 Aristotel Digenis #*/
/*# #*/
/*# Filename: AmbisonicBase.cpp #*/
/*# Version: 0.1 #*/
/*# Date: 19/05/2007 #*/
/*# Author(s): Aristotel Digenis #*/
/*# Licence: MIT #*/
/*# #*/
/*############################################################################*/
#include "AmbisonicBase.h"
CAmbisonicBase::CAmbisonicBase()
: m_nOrder(0)
, m_b3D(0)
, m_nChannelCount(0)
, m_bOpt(0)
{
}
unsigned CAmbisonicBase::GetOrder()
{
return m_nOrder;
}
bool CAmbisonicBase::GetHeight()
{
return m_b3D;
}
unsigned CAmbisonicBase::GetChannelCount()
{
return m_nChannelCount;
}
bool CAmbisonicBase::Configure(unsigned nOrder, bool b3D, unsigned nMisc)
{
m_nOrder = nOrder;
m_b3D = b3D;
m_nChannelCount = OrderToComponents(m_nOrder, m_b3D);
return true;
}
|