SF_Variable

Sonic Flow Blocks Reference Guide

The purpose of SF_Variable is to generate a signal of selected value.

SF_Variable (const char* name = 0);

This is the constructor of a SF_Variable block. Following attributes of the class are specified in the constructor:

virtual ~SF_Variable ();

This is the destructor.

virtual void initialize ();

virtual void execute ();

virtual void finish ();

The initialize - execute - finish chain of function calls is used to carry out the simulation of a block. See SF_Block.

The initialize fills the output frame with desired value set with set_value.

The execute does nothing.

The finish does nothing.

inline void set_value(SF_Sample value);

This function is used to set the value of the variable.

inline SF_Sample get_value();

This function returns the value of the variable.

enum Output_Indices {Y};


Last modified: Wed Dec 2 13:28:47 1998
jarno.seppanen@cs.tut.fi
Audio Research Group