have defaults for AudioSettings_F32

pull/14/head
joerg 3 years ago
parent 6a5d40a459
commit cce309ffd2
  1. 2
      AudioSettings_F32.cpp
  2. 4
      AudioSettings_F32.h

@ -1,5 +1,5 @@
#include <Arduino.h>
#include "AudioSettings_F32.h" #include "AudioSettings_F32.h"
#include "AudioStream_F32.h" #include "AudioStream_F32.h"

@ -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;

Loading…
Cancel
Save