SoundGenerator.StreamChannelElementsCountGet method |
|
Remarks
Retrieves the number of sound elements added to the given channel of the audio stream; the unique identifier of each single element can be obtained through the SoundGenerator.StreamChannelElementUniqueIdGet 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.StreamChannelElementsCountGet ( nPlayer as Integer, nChannel as Integer, ByRef nElements as Long ) as enumErrorCodes |
[C++] short control.SoundGenerator.StreamChannelElementsCountGet ( short nPlayer, short nChannel, long *nElements ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the involved player |
nChannel |
Channel of the audio stream: can be a value between 0 and the number of channels of the audio stream created through the SoundGenerator.StreamCreateMultiChannelEmpty method. |
nElements |
Reference to a value that, on return from the method call, will contain the number of elements added to the given channel of the audio stream |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |