File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,9 @@ esp_err_t Audio::I2Sstop() {
236236}
237237// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
238238void Audio::zeroI2Sbuff (){
239- auto buff = audio_calloc< uint8_t >( 128 ) ; // From IDF V5 there is no longer the zero_dma_buff() function.
239+ uint8_t buff[ 2 ] = { 0 , 0 } ; // From IDF V5 there is no longer the zero_dma_buff() function.
240240 size_t bytes_loaded = 0 ; // As a replacement, we write a small amount of zeros in the buffer and thus reset the entire buffer.
241- i2s_channel_preload_data (m_i2s_tx_handle, buff. get (), 128 , &bytes_loaded);
241+ i2s_channel_preload_data (m_i2s_tx_handle, buff, 2 , &bytes_loaded);
242242}
243243// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
244244
You can’t perform that action at this time.
0 commit comments