|
|
@ -2,9 +2,11 @@ |
|
|
|
#ifndef _AudioSettings_F32_ |
|
|
|
#ifndef _AudioSettings_F32_ |
|
|
|
#define _AudioSettings_F32_ |
|
|
|
#define _AudioSettings_F32_ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <AudioStream.h> // for AUDIO_SAMPLE_RATE_EXACT, AUDIO_BLOCK_SAMPLES |
|
|
|
|
|
|
|
|
|
|
|
class AudioSettings_F32 { |
|
|
|
class AudioSettings_F32 { |
|
|
|
public: |
|
|
|
public: |
|
|
|
AudioSettings_F32(float fs_Hz, int block_size) : |
|
|
|
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) {} |
|
|
|
sample_rate_Hz(fs_Hz), audio_block_samples(block_size) {} |
|
|
|
const float sample_rate_Hz; |
|
|
|
const float sample_rate_Hz; |
|
|
|
const int audio_block_samples; |
|
|
|
const int audio_block_samples; |
|
|
|