SPKitRectifier


User's Guide

SPKitRectifier is a signal rectifier. It outputs absolute values of its input samples.

Programmer's Reference

Defined in <spkit/rectifie.h>
Inherits from SPKitProcessor

SPKitRectifier overrides getSample() for rectifying the input signal.

Public Members

int getSample(SPKitSample& outputSample)
retrieve a processed audio sample

getSample() requests a sample from its input and stores the absolute value of the sample in outputSample.

The function returns 0 when all its inputs run out of samples, 1 otherwise.


Return to SPKit home

Kai Lassfolk / University of Helsinki / kpl@elisir.helsinki.fi