libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_GetDynamicStreamLoad Function

Get dynamic stream load.

C++
__stdcall __declspec(dllimport) void zplay_GetDynamicStreamLoad(ZPLAY_HANDLE handle, TStreamLoadInfo * pStreamLoadInfo);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TStreamLoadInfo * pStreamLoadInfo 
Pointer to TStreamLoadInfo structure receiving informations about stream load. User must allocate memory for this structure. 

None.

Use this function to to check if stream is low with data, so you can push more data into stream.

ZPlay C++ Class interface

TStreamLoadInfo sload;
if(instance->GetManagedStreamLoad(&sload))
  printf("Buffers: %u, bytes: %u\n", sload.NumberOfBuffers, sload.NumberOfBytes);

 

C Style interface

TStreamLoadInfo sload;
if(zplay_GetManagedStreamLoad(instance, &sload))
  printf("Buffers: %u, bytes: %u\n", sload.NumberOfBuffers, sload.NumberOfBytes);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr