mirror of
https://github.com/thestk/stk
synced 2026-01-16 06:21:51 +00:00
Version 4.1.2
This commit is contained in:
committed by
Stephen Sinclair
parent
6e0d1955a8
commit
586b0add5f
@@ -23,7 +23,7 @@
|
||||
/***************************************************/
|
||||
|
||||
#include "DelayL.h"
|
||||
#include <iostream.h>
|
||||
#include <iostream>
|
||||
|
||||
DelayL :: DelayL()
|
||||
{
|
||||
@@ -56,13 +56,13 @@ void DelayL :: setDelay(MY_FLOAT theDelay)
|
||||
MY_FLOAT outPointer;
|
||||
|
||||
if (theDelay > length-1) {
|
||||
cerr << "DelayL: setDelay(" << theDelay << ") too big!" << endl;
|
||||
std::cerr << "DelayL: setDelay(" << theDelay << ") too big!" << std::endl;
|
||||
// Force delay to maxLength
|
||||
outPointer = inPoint + 1.0;
|
||||
delay = length - 1;
|
||||
}
|
||||
else if (theDelay < 0 ) {
|
||||
cerr << "DelayL: setDelay(" << theDelay << ") less than zero!" << endl;
|
||||
std::cerr << "DelayL: setDelay(" << theDelay << ") less than zero!" << std::endl;
|
||||
outPointer = inPoint;
|
||||
delay = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user