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