mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	[i2s_audio] Bugfix: Speaker incorrectly delays when sending data (#8361)
This commit is contained in:
		| @@ -203,7 +203,7 @@ size_t I2SAudioSpeaker::play(const uint8_t *data, size_t length, TickType_t tick | |||||||
|     this->start(); |     this->start(); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if ((this->state_ != speaker::STATE_RUNNING) || (this->audio_ring_buffer_.use_count() == 1)) { |   if ((this->state_ != speaker::STATE_RUNNING) || (this->audio_ring_buffer_.use_count() != 1)) { | ||||||
|     // Unable to write data to a running speaker, so delay the max amount of time so it can get ready |     // Unable to write data to a running speaker, so delay the max amount of time so it can get ready | ||||||
|     vTaskDelay(ticks_to_wait); |     vTaskDelay(ticks_to_wait); | ||||||
|     ticks_to_wait = 0; |     ticks_to_wait = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user