Skip to content

Mixing Audio Input with effect #1870

Answered by pschatzmann
bill-g4aep asked this question in Q&A
Discussion options

You must be logged in to vote

I was playing around with your sketch, and I know now what's going wrong: the OutputMixer exptects identical write sizes of the different inputs: unfortunately it is not really defined how each component submits it's samples to the output: this could be in individual samples! This can be fixed by adding a BufferedStream into the chain which makes sure that the data is written only when the buffer size is reached!

Here is the adampted example that works for a LyraT:

#include "AudioTools.h"
#include "AudioTools/AudioLibs/AudioSTK.h"
#include "AudioTools/AudioLibs/AudioBoardStream.h"

AudioInfo info(44100, 2, 16);
AudioBoardStream i2s(LyratV43);  // or use I2SStream
MultiOutput split;
Output…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bill-g4aep
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants