能否在一个pipeline中添加多个音频输入流
Posted: Tue Oct 13, 2020 1:19 am
能否在一个pipeline中添加多个音频输入流[,例如httpstream flash_tone_stream,因为音频的输入方向有两个。或者能否进行pipeline的时间复用,觉得设置两个播放的pipeline造成了浪费。
Code: Select all
esp_audio_input_stream_add(handle, fatfs_stream_init(&fs_reader));
http_stream_cfg_t http_cfg = HTTP_STREAM_CFG_DEFAULT();
http_cfg.event_handle = _http_stream_event_handle;
http_cfg.type = AUDIO_STREAM_READER;
http_cfg.enable_playlist_parser = true;
audio_element_handle_t http_stream_reader = http_stream_init(&http_cfg);
esp_audio_input_stream_add(handle, http_stream_reader);
http_stream_reader = http_stream_init(&http_cfg);
esp_audio_input_stream_add(handle, http_stream_reader);