Movie Player ActiveX Control

SetEchoParam

 

Set the parameter of Echo effect.You must set UsePitchTempo property = false if you want to use Audio Effect. If you set AudioEffect property =-1, it will not use audio effect.
You can use this function to create single echoes, as well as a number of other effects. Delays of 35 milliseconds (ms) or more will be perceived as discrete echoes, while those falling within the 35-15 ms range can be used to create a simple chorus or flanging effect.
 

Public Function SetEchoParam(
  ByVal fWetDryMix As float, _
  ByVal fFeedback As float, _
  ByVal fLeftDelay As float, _
  ByVal fRightDelay As float, _
 ByVal lPanDelay As long 
    )

 

Parameter
fWetDryMix
Ratio of wet (processed) signal to dry (unprocessed) signal. Must be in the range from 0 through 100. The default value is 50.

fFeedback
Percentage of output fed back into input, in the range from 0 through 100. The default value is 50.

fLeftDelay
Delay for left channel, in milliseconds, in the range from 1 through 2000. The default value is 500 ms.

fRightDelay
Delay for right channel, in milliseconds, in the range from 1 through 2000. The default value is 500 ms.

lPanDelay
Value that specifies whether to swap left and right delays with each successive echo. The default value is zero, meaning no swap. 1 is swap channels.

No Return Value


Example

   

Visual Basic Syntax
iAudioEffectCount = MoviePlayer1.GetAudioEffectCount
For i = 0 To iAudioEffectCount - 1
  List1.AddItem MoviePlayer1.GetAudioEffectName(i)
Next
MoviePlayer1.UsePitchTempo = False
MoviePlayer1.AudioEffect = List1.ListIndex
MoviePlayer1.FileName = "c:\test1.mpg"
MoviePlayer1.SetEchoParam Text28, Text29, Text30, Text31, Text52