libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.PushDataToStream Method

Push new data to dynamic stream.

Visual Basic
Public Function PushDataToStream(ByRef MemNewData() As Byte, ByVal NewDatSize As UInteger) As Boolean
Parameters 
Description 
ByRef MemNewData() As Byte 
Reference to a memory block with stream data. 
ByVal NewDatSize As UInteger 
Size of memory block, in bytes. If this value is 0, end marker is added to stream. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here

This function only works on dynamic stream. If you try to push data into static stream, this function will fail. 

If stream is buffered stream, this function makes copy of input data into internal buffer. Interface instance is responsible for this internal data and user can destroy original source buffer pointed by MemNewData

If stream is not buffered, function takes only pointer to input data and user is responsible for data pointed by MemNewData pointer. 

If MemNewData is 0, end marker is added to stream. This indicates that there will be no more data for stream. If you add end marker to stream, when stream runs out of data, playing will be stopped and stream will not wait for new data. If there is no end marker added to stream, when stream runs out of data, playing is paused and stream is waiting for new data. 

 

Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr