mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[audio, mixer] Memory and CPU performance improvements (#8387)
This commit is contained in:
@@ -490,7 +490,8 @@ void MixerSpeaker::audio_mixer_task(void *params) {
|
||||
break;
|
||||
}
|
||||
|
||||
output_transfer_buffer->transfer_data_to_sink(pdMS_TO_TICKS(TASK_DELAY_MS));
|
||||
// Never shift the data in the output transfer buffer to avoid unnecessary, slow data moves
|
||||
output_transfer_buffer->transfer_data_to_sink(pdMS_TO_TICKS(TASK_DELAY_MS), false);
|
||||
|
||||
const uint32_t output_frames_free =
|
||||
this_mixer->audio_stream_info_.value().bytes_to_frames(output_transfer_buffer->free());
|
||||
|
||||
Reference in New Issue
Block a user