From 8567c6f523b1d484932c80685b2d3afe2ea4bdfa Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Fri, 25 Oct 2024 21:08:54 +0200 Subject: [PATCH] make sure that only the component locking is in place. --- esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp index 0b9c628543..2fc0f6b194 100644 --- a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +++ b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp @@ -201,9 +201,6 @@ size_t I2SAudioSpeaker::play(const uint8_t *data, size_t length, TickType_t tick ESP_LOGE(TAG, "Cannot play new audio, it being used by an other audio component."); return 0; } - if (this->state_ == speaker::STATE_STOPPING) { - return 0; - } if (this->state_ != speaker::STATE_RUNNING && this->state_ != speaker::STATE_STARTING) { this->start();