Skip to content

Commit affe67d

Browse files
Test no interrupts
1 parent a03bc30 commit affe67d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ESP32_VS1053_Stream.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ void ESP32_VS1053_Stream::_playFromRingBuffer()
402402
while (_remainingBytes && _vs1053->data_request() && millis() - start < MAX_TIME_MS)
403403
{
404404
size_t size = 0;
405-
portDISABLE_INTERRUPTS();
405+
//portDISABLE_INTERRUPTS();
406406
uint8_t *data = (uint8_t *)xRingbufferReceiveUpTo(_ringbuffer_handle, &size, pdMS_TO_TICKS(0), VS1053_PLAYBUFFER_SIZE);
407-
portENABLE_INTERRUPTS();
407+
//portENABLE_INTERRUPTS();
408408
static auto ringbufferEmpty = 0;
409409
if (!data)
410410
{
@@ -447,9 +447,9 @@ void ESP32_VS1053_Stream::_streamToRingBuffer(WiFiClient *const stream)
447447
break;
448448

449449
const int BYTES_IN_BUFFER = stream->readBytes(_localbuffer, BYTES_TO_READ);
450-
portDISABLE_INTERRUPTS();
450+
//portDISABLE_INTERRUPTS();
451451
const BaseType_t result = xRingbufferSend(_ringbuffer_handle, _localbuffer, BYTES_IN_BUFFER, pdMS_TO_TICKS(0));
452-
portENABLE_INTERRUPTS();
452+
//portENABLE_INTERRUPTS();
453453
if (result == pdFALSE)
454454
{
455455
log_e("ringbuffer failed to receive %i bytes. Closing stream.");
@@ -534,9 +534,9 @@ void ESP32_VS1053_Stream::_chunkedStreamToRingBuffer(WiFiClient *const stream)
534534
break;
535535

536536
const int BYTES_IN_BUFFER = stream->readBytes(_localbuffer, BYTES_TO_READ);
537-
portDISABLE_INTERRUPTS();
537+
//portDISABLE_INTERRUPTS();
538538
const BaseType_t result = xRingbufferSend(_ringbuffer_handle, _localbuffer, BYTES_IN_BUFFER, pdMS_TO_TICKS(0));
539-
portENABLE_INTERRUPTS();
539+
//portENABLE_INTERRUPTS();
540540
if (result == pdFALSE)
541541
{
542542
log_e("ringbuffer failed to receive %i bytes. Closing stream.");

0 commit comments

Comments
 (0)