Removed extra .h - Thanks B Miller

pull/13/head
boblark 3 years ago
parent d25d0998ee
commit dfb7d25189
  1. 9
      examples/TestEqualizer1/TestEqualizer1.ino

@ -3,9 +3,10 @@
* This version is for the Chip Audette _F32 Library. * This version is for the Chip Audette _F32 Library.
*/ */
// Removed redundant DSP_TeensyAudio_F32.h Bob 9 Mar 2022
#include "Audio.h" #include "Audio.h"
#include "OpenAudio_ArduinoLibrary.h" #include "OpenAudio_ArduinoLibrary.h"
#include "DSP_TeensyAudio_F32.h"
AudioInputI2S i2s1; // Start interrupts AudioInputI2S i2s1; // Start interrupts
AudioSynthWaveformSine_F32 sine1; // Test signal AudioSynthWaveformSine_F32 sine1; // Test signal
@ -24,7 +25,7 @@ int i, k;
float32_t dBResponse[500]; // Show lots of detail float32_t dBResponse[500]; // Show lots of detail
void setup(void) { void setup(void) {
AudioMemory(5); AudioMemory(5);
AudioMemory_F32(10); AudioMemory_F32(10);
Serial.begin(300); delay(1000); Serial.begin(300); delay(1000);
Serial.println("*** Test Audio Equalizer ***"); Serial.println("*** Test Audio Equalizer ***");
@ -55,7 +56,7 @@ void setup(void) {
void loop(void) { void loop(void) {
if(i<0) i++; // Get past startup if(i<0) i++; // Get past startup
if(i==0) queue1.begin(); if(i==0) queue1.begin();
// Collect 128 samples and output to Serial // Collect 128 samples and output to Serial
// This "if" will be active for i == 0 // This "if" will be active for i == 0
if (queue1.available() >= 1 && i >= 0) { if (queue1.available() >= 1 && i >= 0) {
@ -70,7 +71,7 @@ void loop(void) {
queue1.freeBuffer(); queue1.freeBuffer();
queue1.end(); // No more data to queue1 queue1.end(); // No more data to queue1
} }
if(i == 1) { if(i == 1) {
// Uncomment the next 3 lines to printout a sample of the sine wave. // Uncomment the next 3 lines to printout a sample of the sine wave.
/*Serial.println("128 Samples: "); /*Serial.println("128 Samples: ");
for (k=0; k<128; k++) { for (k=0; k<128; k++) {

Loading…
Cancel
Save