Copyright © 2001-2018 MultiMedia Soft

SoundGenerator.StreamChannelElementsCountGet method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

control.SoundGenerator.StreamChannelElementsCountGet (

nPlayer as Integer,

nChannel as Integer,

ByRef nElements as Long

) as enumErrorCodes



short control.SoundGenerator.StreamChannelElementsCountGet (

short nPlayer,

short nChannel,

long *nElements








Number representing the zero-based index of the involved player


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.


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






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