Copyright © 2001-2019 MultiMedia Soft

StreamQueuePushData method

Previous pageReturn to chapter overviewNext page

Remarks

 

Pushes uncompressed PCM data into a stream previously created through the StreamQueueCreate method. When feeding PCM data into a stream in playback, this method should be called at a rate sufficient to sustain playback without glitches: if for any reason the control shouldn't receive enough PCM data, it would be forced to stall playback and to fire a StreamQueueStalled event; when enough PCM data should be available again, the SoundPlaying event would be fired automatically.

 

The amount of still buffered bytes can be obtained through the StreamQueueBufferedDataGet method.

 

 

Syntax

 

[Visual Basic]

control.StreamQueuePushData (

nPlayer as Integer,

pBuffer as Variant,

nBufferLen as Long

) as enumErrorCodes


 

[C++]

short control.StreamQueuePushData (

short nPlayer,

const VARIANT FAR& pBuffer,

long nBufferLen

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

pBuffer

Variant parameter containing the pointer to uncompressed PCM data to push into the queue

nBufferLen

Length in bytes of the given buffer

 

 

 

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.