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

Get current bitrate.

C++
virtual __stdcall int GetBitrate(int fAverage) = 0;
Parameters 
Description 
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