Unmodified copy of fmodex/fmod (lib/, src/, win32/) plus LICENSE.TXT and revision.txt, at the original location Engine/Source/SoundEngine/fmodex (12340/Mac 13682 paths). 12340's exact FMOD version is unknown; version differences are expected. Not built yet. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
37 lines
479 B
C++
37 lines
479 B
C++
// Allpass filter implementation
|
|
//
|
|
// Written by Jezar at Dreampoint, June 2000
|
|
// http://www.dreampoint.co.uk
|
|
// This code is public domain
|
|
|
|
#include "allpass.h"
|
|
|
|
allpass::allpass()
|
|
{
|
|
bufidx = 0;
|
|
}
|
|
|
|
void allpass::setbuffer(float *buf, int size)
|
|
{
|
|
buffer = buf;
|
|
bufsize = size;
|
|
}
|
|
|
|
void allpass::mute()
|
|
{
|
|
for (int i=0; i<bufsize; i++)
|
|
buffer[i]=0;
|
|
}
|
|
|
|
void allpass::setfeedback(float val)
|
|
{
|
|
feedback = val;
|
|
}
|
|
|
|
float allpass::getfeedback()
|
|
{
|
|
return feedback;
|
|
}
|
|
|
|
//ends
|