We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5d40a commit cce309fCopy full SHA for cce309f
AudioSettings_F32.cpp
@@ -1,5 +1,5 @@
1
2
-
+#include <Arduino.h>
3
#include "AudioSettings_F32.h"
4
#include "AudioStream_F32.h"
5
AudioSettings_F32.h
@@ -2,9 +2,11 @@
#ifndef _AudioSettings_F32_
#define _AudioSettings_F32_
+#include <AudioStream.h> // for AUDIO_SAMPLE_RATE_EXACT, AUDIO_BLOCK_SAMPLES
6
+
7
class AudioSettings_F32 {
8
public:
- AudioSettings_F32(float fs_Hz, int block_size) :
9
+ AudioSettings_F32(float fs_Hz=AUDIO_SAMPLE_RATE_EXACT, int block_size=AUDIO_BLOCK_SAMPLES) :
10
sample_rate_Hz(fs_Hz), audio_block_samples(block_size) {}
11
const float sample_rate_Hz;
12
const int audio_block_samples;
0 commit comments