SoundComposer.SessionInit method |
|
Remarks
Initializes a new audio stream for the sound composer's session.
For further details about sound composing see the the SoundComposer object and the How to compose a sound tutorial.
Syntax
[Visual Basic] control.SoundComposer.SessionInit ( nSampleRate as Long, nChannels as Integer ) as enumErrorCodes |
[C++] short control.SoundComposer.SessionInit ( 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. |