Converting on the output side issue #2237
-
|
Hardware: Waveshare ESP32-S3-Zero I ran the 32-to-16bit conversion example shown on wiki, https://github.com/pschatzmann/arduino-audio-tools/wiki/Converting-the-Data-Format but the output is all 0,0. I modified the sketch to run for 800ms to read the output and saw this error line at startup: [E] AudioStreamsConverter.h : 161 - toChannels is 0 Could this somehow be causing the issue of the 0,0? I expected to see a 16-bit plot on the Serial plotter but obviously nothing came out. I did try setting all 16-bit parameters to 32 and the plot works fine(despite the error line). SketchSerial monitor output |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I committed a correction. Alternatively you can try with conv.setBuffered(false); Usually I recommend to use the NumberFormatConverterStream when you just want to change the bits_per_sample, but in this case the issue was in the NumberFormatConverterStream itself. |
Beta Was this translation helpful? Give feedback.
I committed a correction. Alternatively you can try with conv.setBuffered(false);
Usually I recommend to use the NumberFormatConverterStream when you just want to change the bits_per_sample, but in this case the issue was in the NumberFormatConverterStream itself.