API.cpp
under class OBSAPIInterface : public APIInterface
under public:
virtual UINT GetCaptureFPS() const {return App->captureFPS;}
virtual UINT GetbytesPerSec() const {return App->bytesPerSec;}
virtual UINT GetTotalFrames() const {return App->network->NumTotalVideoFrames();}
virtual UINT GetFramesDropped() const {return App->curFramesDropped;}
virtual UINT GetTotalStreamTime() const {return App->totalStreamTime;}
APIDefs.cpp
UINT OBSGetCaptureFPS() {return API->GetCaptureFPS();}
UINT OBSGetbytesPerSec() {return API->GetbytesPerSec();}
UINT OBSGetTotalFrames() {return API->GetTotalFrames();}
UINT OBSGetFramesDropped() {return API->GetFramesDropped();}
UINT OBSGetTotalStreamTime() {return API->GetTotalStreamTime();}
APIInterface.h
under public:
virtual UINT GetCaptureFPS() const=0;
virtual UINT GetbytesPerSec() const=0;
virtual UINT GetTotalFrames() const=0;
virtual UINT GetFramesDropped() const=0;
virtual UINT GetTotalStreamTime() const=0;
under //C-style API exports
BASE_EXPORT UINT OBSGetCaptureFPS()
BASE_EXPORT UINT OBSGetbytesPerSec();
BASE_EXPORT UINT OBSGetTotalFrames();
BASE_EXPORT UINT OBSGetFramesDropped();
BASE_EXPORT UINT OBSGetTotalStreamTime();