|
Public Member Functions |
| | Envelope () |
| | Envelope (double t, double x1, double y1, double x2=NULL, double y2=1.0, double x3=NULL, double y3=1.0, double x4=NULL, double y4=1.0, double x5=NULL, double y5=1.0, double x6=NULL, double y6=1.0) |
| | Lots of useful constructors.
|
| | Envelope (double t, unsigned int size, double x[], double y[]) |
| virtual | ~Envelope () |
| bool | isActive () |
| | This answers whether I'm active (ptr < end).
|
| void | addBreakpoint (double startTime, double value) |
| void | setInterpolationAtSegment (LineMode mode, unsigned idx) |
| | allows to specify interpolation other than linear for a segment.
|
| void | setDuration (float d) |
| | set/scale durations
|
| void | scaleTimes (float s) |
| | scale durations
|
| void | reset () |
| | reset internal time to restart envelope
|
| void | trigger () |
| | reset internal time to restart envelope
|
| void | dump () |
| | Pretty-printer.
|
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| | The main FrameStream work method.
|
Protected Member Functions |
| unsigned int | privateNextBuffer (CPoint *breakpoint, LineSegment *segment, float *buffer, unsigned int numFrames) |
| | Internal helper method for computing the next buffer.
|
| void | createSegments () |
| | Allocate memory for the segments.
|
| void | calculateSegments () |
| | Calculate the internal data.
|
Protected Attributes |
| float | mDuration |
| | Total duration, typically in seconds.
|
| float | mCurrentMark |
| | How far we have read.
|
| Breakpoints | mSegmentMap |
| LineSegment ** | mSegments |
| double * | mValues |
| unsigned | mSize |