The input is providing 1 channel. We convert the data to 2 channels so that we can output to a stream with 2 channels. #include "AudioTools.h" uint16_t sample_rate=44100; uint8_t from_channels = 1; ...
#include "AudioTools.h" uint16_t sample_rate=44100; uint8_t from_channels = 1; uint8_t to_channels = 2; SineWaveGenerator<int16_t> sine_wave(32000); // subclass of ...