Copyright © 2001-2019 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.

 

 

Syntax

 

[Visual Basic]

control.StreamQueueCreate (

nPlayer as Integer,

nFrequency as Long,

nChannels as Integer,

nBitsPerSample as Integer

) as enumErrorCodes


 

[C++]

short control.StreamQueueCreate (

short nPlayer,

long nFrequency,

short nChannels

short nBitsPerSample

);


 

 

Parameter

Description

 

 

nPlayer

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 file has been loaded correctly.