fixed noise issue on send, glitch remains :(

This commit is contained in:
Gerald 2016-11-16 22:28:53 +01:00
parent 12bfb6de72
commit 662b235d91

View file

@ -23,9 +23,10 @@ void JackSendReturn::process(unsigned int nframes, Buffers *buffers)
float* ret=(float*)jack_port_get_buffer(m_returnport,(jack_nframes_t)nframes); float* ret=(float*)jack_port_get_buffer(m_returnport,(jack_nframes_t)nframes);
//Copy result of previous AudioProcessor to send port //Copy result of previous AudioProcessor to send port
//memcpy(send,buffers->audio[Buffers::SEND_TRACK_0+m_trackid],nframes*sizeof(float)); // memcpy(send,buffers->audio[Buffers::SEND_TRACK_0+m_trackid],nframes*sizeof(float));
// memset(send,0,nframes*sizeof(float));
for(int i=0;i<nframes;i++) for(int i=0;i<nframes;i++)
send[i]+=m_sendvol*buffers->audio[Buffers::SEND_TRACK_0+m_trackid][i]; send[i]=m_sendvol*buffers->audio[Buffers::SEND_TRACK_0+m_trackid][i];
if(m_active) if(m_active)