ERIS CORE

◆ onAnalog4()

void FLASHMEM AppAudioToPolyphonic::onAnalog4 ( uint16_t  uval,
float  fval 
)
inlinevirtual

Event handler for analog 4 event.

Parameters
uval
fval

Reimplemented from AppBaseClass.

Definition at line 308 of file AppAudioToPolyphonic.h.

308  {
309  //Serial.print("AN4 ");Serial.printf("%0.4f\n",fval);
310  //output volume
311  if (ad == NULL) return;
313  float gain = log1p(fval);
314  if (amp != NULL) amp->gain(1.0 + gain);
315  };
AudioDirector * ad
Definition: AppBaseClass.h:37
AudioStream * getAudioStreamObjByName(const char *AudioStreamObjName)

References AppBaseClass::ad, and AudioDirector::getAudioStreamObjByName().

+ Here is the call graph for this function: