how can I use AudioEffectEnvelope::isActive ??

Status
Not open for further replies.

colorado_hick

Well-known member
I have an array of envelopes, and I want to look through them to find one that is not active. Below is the snippet.
The error I am getting is
"cannot convert 'AudioEffectEnvelope::isActive' from type 'bool (AudioEffectEnvelope::)()' to type 'bool'"

How do I use the isActive value in a conditional? Actually the opposite of isActive?
thanks!!

Code:
AudioEffectEnvelope      envelope[7];


  int i_return; 
  for (int i = 0; i <= 6; i++) {  // look at each envelope
    if ( ! envelope[i].isActive  ) {  // see if it is active
     i_return = i;
    break; // no reason to keep looping
    }
  } // for loop
 
Status
Not open for further replies.
Back
Top