You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticinti2s_write_cb(audio_element_handle_tel, char*buf, intlen, TickType_twait_time, void*ctx)
{
stream_funcoriginal_write_func= (stream_func)ctx;
// Process your data, you must process data in time to avoid I2S write data blocked,intret=original_write_func(el, buf, len, wait_time, ctx);
if (ret<0) {
ESP_LOGE(TAG, "i2s write failed");
}
returnbytes_write;
}
// Set I2S new write callback functionaudio_element_set_write_cb(i2s_writer, i2s_write_cb, audio_element_get_write_cb(i2s_writer)); // context is original write function
sdcard -> fatfs_stream_reader-->decoder-->i2s_stream-->speaker
总体pipline是这样的,然后我需要获的decoder输出的pcm数据, i2s_stream发送前的数据做fft变换,有什么办法吗?
十分感谢
The text was updated successfully, but these errors were encountered: