Skip to content
Discussion options

You must be logged in to vote

The same with the following player test sketch that just generates 0 values during 5 seconds:

#include "AudioTools.h"
#include "AudioTools/AudioLibs/VS1053Stream.h"
#include "AudioTools/AudioCodecs/CodecCopy.h"
#include <unistd.h>

const char* startFilePath = "/";
const char* ext = "mp3";
Stream* nextStreamCallback(int offset);
AudioSourceCallback source(nextStreamCallback);
VS1053Stream vs1053;  // final output
AudioPlayer player(source, vs1053, *new CopyDecoder());
NullStream zeros;
TimedStream timed;

// provide the next "file"
Stream* nextStreamCallback(int offset) {
  timed.begin();
  return &timed;
}

// report the free RAM
int freeMemory() {
  char top;
  return &top - reinterpret_…

Replies: 2 comments 12 replies

Comment options

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

@BorpaBoatski
Comment options

@pschatzmann
Comment options

@pschatzmann
Comment options

Answer selected by pschatzmann
@BorpaBoatski
Comment options

Comment options

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

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