Skip to content

Commit

Permalink
Merge pull request #53 from gnumpi/fix_buffer_size_tiemout_mismatch
Browse files Browse the repository at this point in the history
fix: (mp3) http stream buffer too large compared to finishing timeout.
  • Loading branch information
gnumpi authored Jul 10, 2024
2 parents 68dc3c2 + e1fa274 commit d628b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/adf_pipeline/adf_audio_sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bool HTTPStreamReaderAndDecoder::init_adf_elements_() {

http_stream_cfg_t http_cfg = HTTP_STREAM_CFG_DEFAULT();
http_cfg.task_core = 0;
http_cfg.out_rb_size = 256 * 1024;
http_cfg.out_rb_size = HTTP_STREAM_RB_SIZE;
http_cfg.event_handle = http_event_handler;
http_stream_reader_ = http_stream_init(&http_cfg);
//http_stream_reader_->buf_size = 1024;
Expand Down

0 comments on commit d628b97

Please sign in to comment.