Copyright © 2005-2018 MultiMedia Soft

StreamQueueCreate method

Previous pageReturn to chapter overviewNext page

Remarks

 

Allows creating a sound stream that will receive uncompressed PCM data from an external source. PCM data can be fed into the stream through the StreamQueuePushData method. The sound stream can be played through the PlaySound method.

 

When version 3.0 or higher of the .NET framework is available, this method and the StreamQueuePushData method can be used in conjunction with the System.Speech.Synthesis.SpeechSynthesizer class in order to provide a mean for redirecting the output or applying special effect and visual feedbacks to the output of the System.Speech.Synthesis.SpeechSynthesizer.SetOutputToAudioStream method. See the How to integrate Microsoft's Speech API tutorial for details.

 

 

Syntax

 

[Visual Basic]

Public Function StreamQueueCreate (

nPlayerIndex as Int16,

nFrequency as Int32,

nChannels as Int16,

nBitsPerSample as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes StreamQueueCreate (

Int16 nPlayerIndex,

Int32 nFrequency,

Int16 nChannels

Int16 nBitsPerSample

);


 

[C++]

public: enumErrorCodes StreamQueueCreate (

Int16 nPlayerIndex,

Int32 nFrequency,

Int16 nChannels

Int16 nBitsPerSample

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

nFrequency

Sample rate of the sound stream (e.g. 44100)

nChannels

Number of channels of the sound stream: (e.g. 1 for Mono or 2 for Stereo)

nBitsPerSample

Number of bits per sample (e.g. 8 or 16)

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.