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

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

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


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

How to process like this?

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 online now   Reply With Quote

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 02:42 PM.

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