Files
wowdecomp/Engine/Source/SoundEngine/fmodex/lib/freeverb/comb.cpp
T
SatyandClaude Opus 5.5 ea3c081245 fmodex: FMOD Ex 4.09.07 sources (E:\Github\fmodex)
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]>
2026-09-25 23:44:43 +02:00

49 lines
584 B
C++

// Comb filter implementation
//
// Written by Jezar at Dreampoint, June 2000
// http://www.dreampoint.co.uk
// This code is public domain
#include "comb.h"
comb::comb()
{
filterstore = 0;
bufidx = 0;
}
void comb::setbuffer(float *buf, int size)
{
buffer = buf;
bufsize = size;
}
void comb::mute()
{
for (int i=0; i<bufsize; i++)
buffer[i]=0;
}
void comb::setdamp(float val)
{
damp1 = val;
damp2 = 1-val;
}
float comb::getdamp()
{
return damp1;
}
void comb::setfeedback(float val)
{
feedback = val;
}
float comb::getfeedback()
{
return feedback;
}
// ends