Page 1 of 1

I2S miss first 1 sec of played audio

Posted: Mon Dec 25, 2023 10:50 am
by aectaan
In our project we play some short sounds (~300ms) for button pressing confirmation.
On IDF v5.1 everything was great, but due to some reasons we had been pushed to use IDFv4.4 and after adaptation of HAL we faced with the problem: First frames are not played (around 1 sec) so we're need to send zeroed buffers for one sec and after that our actual sound. It looks awkward and add delay to sound playing. Is there something to get into attention? The problem is the same for long audios - first data is just missed. Codec and amplifier are powered, initialised and works in stable conditions.