SoundGenerator.CompositeWaveToneGenerate method |
|
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 SoundGeneratorMan class and the How to generate wave tones, noises, DTMF tones and text to speech tutorial.
Syntax
[Visual Basic] Public Function CompositeWaveToneGenerate ( nFadeInMs as Int32, nFadeOutMs as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes CompositeWaveToneGenerate ( Int32 nFadeInMs, Int32 nFadeOutMs ); |
[C++] public: enumErrorCodes CompositeWaveToneGenerate ( Int32 nFadeInMs, Int32 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 (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |