libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::TEchoEffect Structure

Echo effect structure.

C++
typedef struct {
  int nLeftDelay;
  int nLeftSrcVolume;
  int nLeftEchoVolume;
  int nRightDelay;
  int nRightSrcVolume;
  int nRightEchoVolume;
} TEchoEffect;
Parameters 
Description 
nLeftDelay 
Delay of left channel in milliseconds. 
nLeftSrcVolume 
Percent of original volume in output for left channel. 
nLeftEchoVolume 
Percent of echo volume in output for left channel. 
nRightDelay 
Delay of right channel in milliseconds. 
nRightSrcVolume 
Percent of original volume in output for right channe. 
nRightEchoVolume 
Percent of echo volume in output for right channel. 

This structure specifies one echo effect. Hot it works: 

You can combine original samples with delayed samples. Original samples are reduced to nLeftSrcVolume. Delayed samples are reduced to nLeftEchoVolume. And these samples are combined to output. 

Note: Be careful with volume percents. 

Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr