Set and change echo effect parameters.
public bool SetEchoParam(ref TEchoEffect EchoEffectArray, int NumberOfEffects);
To produce echo effect, original samples are combined with delayed samples. You need to specify delay (in milliseconds) and volume of original samples and delayed samples.
To specify one echo effect, fill TEchoEffect with valid data. To specify multiple, complex echo effects, specify array of TEchoEffects. Output sound is combination of original samples and delayed samples.
Note: If you specify multiple delay effects, make note about volume because all effects will combine original samples with delayed samples for each effect and you will have summary of all samples.
For example: first effect is using 60 % volume of original(not delayed) samples and on these samples are added 20 % volume delayed samples. Second effect is using 0 % volume of original samples and 20 % volume of delayed samples. And resulting samples from first effect are added to resulting samples from second effect. If you use too much percent of volume, you can get overflow of sample amplitude and sound distorsions.
Note: There is no limit on number of echo effects.
Note: By default, new created interface has programmed one simple echo effect, 1000 ms delay, 70 % original volume + 30 % echo volume.
TEchoEffect effect = new TEchoEffect; effect.nLeftDelay = 2000; effect.nLeftSrcVolume = 50; effect.nLeftEchoVolume = 30; effect.nRightDelay = 2000; effect.nRightSrcVolume = 50; effect.nRightEchoVolume = 30; effect.nLeftDelay = 30; effect.nLeftSrcVolume = 50; effect.nLeftEchoVolume = 30; effect.nRightDelay = 30; effect.nRightSrcVolume = 50; effect.nRightEchoVolume = 30; player.SetEchoParam(ref effect, 2);