Skip to content
Discussion options

You must be logged in to vote

I committed some corrections

and tested with the following sketch:

#include "AudioTools.h"

I2SStream i2s;
Equalizer3Bands eq(i2s);
VolumeStream vol(eq);

void setup() {
  Serial.begin(115200);
  delay(5000);

  // starting with 44100, stereo 16 bits
  Serial.println("starting....");
  vol.begin();
  eq.begin();
  i2s.begin();

  // update audio info to 8000 1 channel
  vol.setAudioInfo(AudioInfo(8000,1,16));

  // check result at end of chain
  AudioInfo info = i2s.audioInfo();
  Serial.println(info.sample_rate);
  Serial.println(info.channels);
}

void loop() {}

Replies: 7 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@hash6iron
Comment options

Comment options

You must be logged in to vote
2 replies
@hash6iron
Comment options

@yudin-s
Comment options

Comment options

You must be logged in to vote
4 replies
@pschatzmann
Comment options

@hash6iron
Comment options

@hash6iron
Comment options

@hash6iron
Comment options

Comment options

You must be logged in to vote
1 reply
@hash6iron
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hash6iron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants