Copyright © 2008-2019 MultiMedia Soft

SoundGenerator.CompositeWaveTonePrepare method

Previous pageReturn to chapter overviewNext page

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:

Value

Meaning

1

Mono audio stream

2

Stereo audio stream

4

3.1 audio stream

6

5.1 audio stream

8

7.1 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.