SoundGenerator.CompositeWaveTonePrepare method |
|
Remarks
Prepares a composite audio stream which can host multiple wave tones added by one of more calls to the SoundGenerator.CompositeWaveToneAddNewWaveTone method. Once all of the needed wave tones have been added, you can generate and load into the editor the final composite wave tone through the SoundGenerator.CompositeWaveToneGenerate 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.CompositeWaveTonePrepare ( nSampleRate as Long, nChannels as Integer ) as enumErrorCodes |
[C++] short control.SoundGenerator.CompositeWaveTonePrepare ( long nSampleRate, short nChannels ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nSampleRate |
Sample rate of the stream, e.g. 44100 |
||||||||||||
nChannels |
Number of channels of the audio stream. Supported values are the following:
|
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. |