예제 #1
0
int RVB::configure()
{
	in = new float [RTBUFSAMPS * inputChannels()];

    alloc_delays();                     /* allocates memory for delays */
	rvb_reset();
	return 0;
}
예제 #2
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;
}
예제 #3
0
int RVB::configure()
{
	in = new float [RTBUFSAMPS * inputChannels()];

	// Allocate the global buffers used to store the early response.
	
	for (int n = 0; n < 2; ++n) {
		if (globalEarlyResponse[n] == NULL)
			globalEarlyResponse[n] = new double[RTBUFSAMPS];
		memset(globalEarlyResponse[n], 0, sizeof(double) * RTBUFSAMPS);
		if (globalReverbInput[n] == NULL)
			globalReverbInput[n] = new double[RTBUFSAMPS];
		memset(globalReverbInput[n], 0, sizeof(double) * RTBUFSAMPS);
	}

    alloc_delays();                     /* allocates memory for delays */
	rvb_reset();
	return 0;
}
예제 #4
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;
}