// // Programmer: Craig Stuart Sapp // Creation Date: Sat Nov 2 23:37:12 PST 1996 // Last Modified: Sat Nov 2 23:37:21 PST 1996 // Filename: ...sig/maint/code/misc/helperFunctions/helperFunctions.h // Web Address: http://sig.sapp.org/include/sig/helperFunctions.h // Syntax: C++ // #ifndef _HELPERFUNCTIONS_H_INCLUDED #define _HELPERFUNCTIONS_H_INCLUDED #include "Signal.h" #include "sigTypes.h" #ifndef OLDCPP #include using namespace std; #else #include #endif ////////////////////////////// // // SampleToShort -- converts a number in the range -1.0 to 1.0 // to a number in the range -32768 to 32767. If the number // is out of the input range then it will be limited to the // maximum in the direction (and not wrap around). // short SampleToShort(sampleType aSample); ////////////////////////////// // // SampleToLong -- converts a number in the range -1.0 to 1.0 // to a number in the range -2147483647 to 2147483648. If the // number is out of the input range then it will be limited to // the maximum in that direction (and not wrap around). // long SampleToLong(sampleType aSample); ////////////////////////////// // // SampleToChar -- converts a number in the range -1.0 to 1.0 // to a number in the range -127 to 128. If the // number is out of the input range then it will be limited to // the maximum in that direction (and not wrap around). // char SampleToChar(sampleType aSample); ////////////////////////////// // // Tick // void Tick(Signal& sig); #endif /* _HELPERFUNCTIONS_H_INCLUDED */ // md5sum: 0edebd28183edca58d0c7ef6464a314e helperFunctions.h [20050403]