Skip to content
Discussion options

You must be logged in to vote

I tried to call audioInfo on the WAVEncoder but I was getting an compile error, which I corrected as well.

However, I can't reproduce your issue:

#include "AudioTools.h"
#include "SD.h"

WAVEncoder wav;
File file;
EncodedAudioStream enc(&file, &wav);
AudioInfo info(22000, 1, 16);

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("starting...");
  AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Info);

  enc.begin(info);
  wav.audioInfo().logInfo("WAVEncoder");
  enc.audioInfo().logInfo("EncodedAudioStream");

  assert(wav.audioInfo() == info);
  assert(enc.audioInfo() == info);
}

void loop() {}

gives

10:17:56.382 -> starting...
10:17:56.382 -> [I] AudioTypes.h : …

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by pschatzmann
@hash6iron
Comment options

@pschatzmann
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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
bug Something isn't working implemented This is working now
2 participants