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

Get current bitrate.

C++
__stdcall __declspec(dllimport) int zplay_GetBitrate(ZPLAY_HANDLE handle, int fAverage);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
int fAverage 
If this value is 1, average bitrate is returned. If this value is 0, real bitrate is returned. 

Bitrate in kbps (kilo bit per second).

On CBR (constant bitrate) streams this value is constant all the time. On VBR (variable bitrate) this value represents bitrate of currently decoded data frame. 

Note: If you need bitrate of whole file or stream, use GetStreamInfo function and TStreamInfo.Bitrate

Get current real bitrate. 

ZPlay C++ Class interface  

int nCurrentBitrate = instance->GetBitrate(0);
printf("Bitrate: %i kbps", nCurrentBitrate);

 

C Style interface

int nCurrentBitrate = zplay_GetBitrate(instance, rereal0);
printf("Bitrate: %i kbps", nCurrentBitrate);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr