Beispiel #1
0
	DecoderStandard::DecoderStandard(unsigned int order, unsigned int numberOfChannels) : Ambisonic(order), Planewaves(numberOfChannels)
	{
        m_harmonics_vector          = new double[m_number_of_harmonics];
        m_decoder_matrix            = new double[m_number_of_channels * m_number_of_harmonics];
        m_decoder_matrix_float      = new float[m_number_of_channels * m_number_of_harmonics];
        m_encoder                   = new Encoder(m_order);
        setChannelsOffset(0., 0);
	}
Beispiel #2
0
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 // Decoder Regular //
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 DecoderRegular::DecoderRegular(unsigned int order, unsigned int numberOfChannels) : Ambisonic(order), Planewaves(numberOfChannels)
 {
     assert(numberOfChannels >= m_number_of_harmonics);
     
     m_harmonics_vector          = new double[m_number_of_harmonics];
     m_decoder_matrix            = new double[m_number_of_channels * m_number_of_harmonics];
     m_decoder_matrix_float      = new float[m_number_of_channels * m_number_of_harmonics];
     m_encoder                   = new Encoder(m_order);
     setChannelsOffset(0.);
 }