You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
542 B
20 lines
542 B
|
|
#ifndef _AudioSettings_F32_
|
|
#define _AudioSettings_F32_
|
|
|
|
#include <AudioStream.h> // for AUDIO_SAMPLE_RATE_EXACT, AUDIO_BLOCK_SAMPLES
|
|
|
|
class AudioSettings_F32 {
|
|
public:
|
|
AudioSettings_F32(float fs_Hz=AUDIO_SAMPLE_RATE_EXACT, int block_size=AUDIO_BLOCK_SAMPLES) :
|
|
sample_rate_Hz(fs_Hz), audio_block_samples(block_size) {}
|
|
const float sample_rate_Hz;
|
|
const int audio_block_samples;
|
|
|
|
float cpu_load_percent(const int n);
|
|
float processorUsage(void);
|
|
float processorUsageMax(void);
|
|
void processorUsageMaxReset(void);
|
|
};
|
|
|
|
#endif |