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

Get current status of stream (playing, paused, echo status, eqaulizer status, ....)

C++
__stdcall __declspec(dllimport) void zplay_GetStatus(ZPLAY_HANDLE handle, TStreamStatus * pStatus);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TStreamStatus * pStatus 
Pointer to TStreamStatus structure receiving status informations. User must allocate memory for this structure. 

None.

Use this function to detect status of various stream states. This is only way to detect if stream is playing or not, if stream is paused or not, ...

Detect if stream is playing. 

ZPlay C++ Class interface  

TStreamStatus status;
instance->GetStatus(&status);
if(status.fPlay)
  printf("Playing");
else
  printf("Stop");

 

C Style interface

TStreamStatus status;
zplay_GetStatus(instance, &status);
if(status.fPlay)
  printf("Playing");
else
  printf("Stop");
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr