tiny "pop" sound after fading sound #2173
-
Hello, I'm using merge, it takes 2 mono inputs, merge in a stereo output, copy to I2S. Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 4 replies
-
Not sure what the issue exactly is, but I also noticed a pop when we start to send any data to I2S. |
Beta Was this translation helpful? Give feedback.
-
I think this is not the cause, I'm already sending data constantly to I2s, I'll do other tests |
Beta Was this translation helpful? Give feedback.
-
I made a simplified version of my sketch, the test sound I use is an composed of sine and silence alternating. ( also if I don't add these lines #include "FS.h" using namespace audio_tools; AudioInfo info(44100, 2, 16); FileLoop loopingFile; StreamCopy copier(i2s, merge, 512); File file1; void setup() { auto config = i2s.defaultConfig(TX_MODE); SD_MMC.begin("/sdcard", true, true, SDMMC_FREQ_52M); merge.add(decoder, 1); file1 = SD_MMC.open("/tones/toneAndSilence.wav"); uint8_t testBuffer[64]; void loop() { |
Beta Was this translation helpful? Give feedback.
-
we hear 2 clicks when going from sound to silence, first one is because of sudden volume and can be ignored |
Beta Was this translation helpful? Give feedback.
-
bypassing merge does the same atcually: #include "FS.h" using namespace audio_tools; AudioBoardStream i2s(AudioKitEs8388V1); FileLoop loopingFile; StreamCopy copier(i2s, decoder, 512); File file1; void setup() { file1 = SD_MMC.open("/tones/toneAndSilence.wav"); decoder.begin(); } void loop() { |
Beta Was this translation helpful? Give feedback.
-
using an arduino audio kit v2.2 3378 |
Beta Was this translation helpful? Give feedback.
-
Have a look and play your file in Audacity: the issue is in your data since I can reproduce it there as well! You should fade in and fade out: at least your samples should start/end at 0... |
Beta Was this translation helpful? Give feedback.
-
toneAndSilence2.wav.gz |
Beta Was this translation helpful? Give feedback.
-
I will test on another esp32 with external dac to check if that comes from the esp32-audiokit hardware |
Beta Was this translation helpful? Give feedback.
-
My dev : No change everything , pup voice same. MAX98375A
Main
|
Beta Was this translation helpful? Give feedback.
Not sure what the issue exactly is, but I also noticed a pop when we start to send any data to I2S.
If this is the cause of your issue, then a work around would be just to send silence...