示例#1
0
文件: BASE.cpp 项目: RTcmix/RTcmix
int BASE::configure()
{
	int status = 0;
	
	in = new float [RTBUFSAMPS * inputChannels()];
	status = alloc_delays();			/* allocates memory for delays */

	rvb_reset(m_tapDelay);				  // resets reverb & tap delay

	if (status == 0 && m_binaural) {
		rtcmix_advise(name(), "Running in binaural mode.");
		status = alloc_firfilters();	// allocates memory for FIRs
	}
	return status;
}
示例#2
0
文件: MBASE.cpp 项目: eriser/RTcmix-1
int MBASE::configure()
{
	int status = 0;
	
	in = new float [RTBUFSAMPS * inputChannels()];
    status = alloc_delays();			/* allocates memory for delays */
	
	for (int i = 0; i < 2; i++)
		for (int j = 0; j < 13; j++)
			m_vectors[i][j].Sig = new double[getBufferSize()];

	rvb_reset(m_tapDelay);   			// resets tap delay

	if (status == 0 && m_binaural) {
		rtcmix_advise(name(), "Running in binaural mode.");
		status = alloc_firfilters();	// allocates memory for FIRs
	}
	return status;
}