Copyright © 2001-2018 MultiMedia Soft

SoundGenerator.StreamElementTypeGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the type of the given sound element.

 

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.StreamElementTypeGet (

nPlayer as Integer,

nUniqueId as Long,

ByRef nType as enumSoundGeneratorTypes

) as enumErrorCodes


 

[C++]

short control.SoundGenerator.StreamElementTypeGet (

short nPlayer,

long nUniqueId,

short *nType

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nUniqueId

The unique identifier of the element previously returned by one of the following calls:

- SoundGenerator.StreamChannelAddTone

- SoundGenerator.StreamChannelAddNoise

- SoundGenerator.StreamChannelAddDtmfString

- SoundGenerator.StreamChannelAddSlidingTone

- SoundGenerator.StreamChannelAddSpeechFromFile

- SoundGenerator.StreamChannelAddSpeechFromString

- SoundGenerator.StreamChannelElementUniqueIdGet

nType

Reference to a value that, on return from the method call, will contain the type of the sound element.

Supported values are the following:

Mnemonic Value

Value

Meaning

SOUND_GEN_TYPE_WAVETONE

0

Wave tone element added through a call to the SoundGenerator.StreamChannelAddTone method.

SOUND_GEN_TYPE_NOISE

1

Noise element added through a call to the SoundGenerator.StreamChannelAddNoise method.

SOUND_GEN_TYPE_SLIDING_WAVETONE

2

Sliding wave tone element added through a call to the SoundGenerator.StreamChannelAddSlidingTone method.

SOUND_GEN_TYPE_DTMF

3

DTMF string element added through a call to the SoundGenerator.StreamChannelAddDtmfString method.

SOUND_GEN_TYPE_TEXT_TO_SPEECH

4

Text to speech element added through a call to the SoundGenerator.StreamChannelAddSpeechFromFile or SoundGenerator.StreamChannelAddSpeechFromString methods.

 

 

 

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