Copyright © 2001-2018 MultiMedia Soft

StreamQueuePushData method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

control.StreamQueuePushData (

nPlayer as Integer,

pBuffer as Variant,

nBufferLen as Long

) as enumErrorCodes



short control.StreamQueuePushData (

short nPlayer,

const VARIANT FAR& pBuffer,

long nBufferLen









Number representing the zero-based index of the involved player


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


Length in bytes of the given buffer




Return value






Negative value

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

enumErrorCodes.NOERROR (0)

The file has been loaded correctly.