COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 02-11-2018, 03:03 AM   #1
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 181
Default ProcessDoubleReplacing modifications (vector double)

Hi,

I'm changing double* to vector<double>.But getting expression result unused warning.

How to process like this?

Code:
void IPlugEffect::ProcessDoubleReplacing(double** inputs, double** outputs, int nFrames)
{
  // Mutex is already locked for us.

  std::vector<double> in1 {0};
  std::vector<double> in2 {1};
  std::vector<double> out1 {0};
  std::vector<double> out2 {1};

  for (int s = 0; s < nFrames; ++s, in1, in2, out1, out2)
  {
    
    double Fs = GetSampleRate();

    
    
    out1 = Filter(in1, Fs);
    out2 = Filter(in2, Fs);

  }
}
Tunca is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.