I try to add some delay algotithm to OutputChannel that i will show in this code
void audioDeviceIOCallback (const float** inputChannelData, int numInputChannels,
float** outputChannelData, int numOutputChannels,
int numSamples) override
{
for (int i = 0; i < numSamples; ++i)
{
for (int i = 0; i < numSamples; ++i)
{
for (int chan = 0; chan < numOutputChannels; ++chan)
{
/// i try to add some delay algorithm around here//
outputChannelData[chan][i]=inputChannelData[chan][i];
///////////////////////////////////////////////////
}
}
}
}
I try to add many delay algorithm to my code but none seem to work . It only gives a stange sound .
I don't sure that i can add delay algotithm to outputChannel like this or not?
now i thought that i should use "AudioProcessor" for make delay effect to my input ... am i right ?
ps. i always learn to use juce api with juce demo but there are no "Delay effect example" in juce demo ... and I know i should dig in api document more than this ... but after 2 days of digging , i still don't know how can i use AudioProcessor to make dalay effect for my inputchannel...