Copyright © 2008-2019 MultiMedia Soft

SoundGenerator.CompositeWaveToneGenerate method

Previous pageReturn to chapter overviewNext page

Remarks

 

Generates and loads into the editor the composite audio stream, created through a previous call to the SoundGenerator.CompositeWaveTonePrepare method, using wave tones previously added through calls to the SoundGenerator.CompositeWaveToneAddNewWaveTone method..

 

For further details about sound generation see the SoundGenerator object and the How to generate wave tones, noises, DTMF tones and text to speech tutorial.

 

 

Syntax

 

[Visual Basic]

control.SoundGenerator.CompositeWaveToneGenerate (

nFadeInMs as Long,

nFadeOutMs as Long

) as enumErrorCodes


 

[C++]

short control.SoundGenerator.CompositeWaveToneGenerate (

long nFadeInMs,

long nFadeOutMs

);


 

 

Parameter

Description

 

 

nFadeInMs

Duration of the fade-in at the beginning of the audio stream expressed in milliseconds. Set this value to 0 if you don't need to apply a fade-in at the beginning of the audio stream.

nFadeOutMs

Duration of the fade-out at the end of the audio stream expressed in milliseconds. Set this value to 0 if you don't need to apply a fade-out at the end of the audio stream.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.