libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::PushDataToStream Method

Push new data to dynamic stream.

C++
virtual __stdcall int PushDataToStream(const void * sMemNewData, unsigned int nNewDataize) = 0;
Parameters 
Description 
const void * sMemNewData 
Points to a memory block with stream data. If this value is NULL, end marker is added to stream. 
unsigned int nNewDataize 
Size of memory block, in bytes. If this value is 0, end marker is added to stream. 
Return Values 
Description 
All OK. 
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 NULL or nNewDataize 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. 

 

Add end marker to dynamic stream. ZPlay C++ Class interface

instance->PushDataToStream(0,0);

 

C Style interface

zplay_PushDataToStream(instance, 0,0);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr