PortAudio  2.0
Data Structures | Functions

Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function. More...

Go to the source code of this file.

Data Structures

struct  PaUtilCpuLoadMeasurer
 

Functions

void PaUtil_InitializeCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer, double sampleRate)
 
void PaUtil_BeginCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer)
 
void PaUtil_EndCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer, unsigned long framesProcessed)
 
void PaUtil_ResetCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer)
 
double PaUtil_GetCpuLoad (PaUtilCpuLoadMeasurer *measurer)
 

Detailed Description

Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function.

Function Documentation

void PaUtil_BeginCpuLoadMeasurement ( PaUtilCpuLoadMeasurer measurer)
void PaUtil_EndCpuLoadMeasurement ( PaUtilCpuLoadMeasurer measurer,
unsigned long  framesProcessed 
)
double PaUtil_GetCpuLoad ( PaUtilCpuLoadMeasurer measurer)
void PaUtil_InitializeCpuLoadMeasurer ( PaUtilCpuLoadMeasurer measurer,
double  sampleRate 
)
void PaUtil_ResetCpuLoadMeasurer ( PaUtilCpuLoadMeasurer measurer)