You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The I2s_write calls return nearly immediately. For example, about 1000 ms of 16-bit 11 kHz mono data is accepted by is2_write in about 50 ms. This suggests that the audio data is not being correctly queued by the driver. When it works correctly, the i2s_write calls are roughly evenly spaced across the one second interval.
The implementation used is in the Moddable SDK audio output module.
We first became aware of this issue when reported against the Moddable SDK (#881). There is a report (#6470) of ADC output being broken in ESP-IDF v4.1, but this is not the issue we have (our code works with ESP-IDF v4.3). That report has a comment which mentions ADC audio is broken on ESP-IDF v4.4 also.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
DAC audio playback broken in ESP-IDF 4.4 (works in 4.3)
DAC audio playback broken in ESP-IDF 4.4 (works in 4.3) (IDFGH-7160)
Apr 12, 2022
Set communication_format to I2S_COMM_FORMAT_STAND_MSB;
For stereo case, set channel_format to I2S_CHANNEL_FMT_RIGHT_LEFT and for mono case, set channel_format to I2S_CHANNEL_FMT_ONLY_RIGHT or I2S_CHANNEL_FMT_ONLY_LEFT
Environment
Problem Description
Audio playback using
i2s_
API to DAC fails:i2s_*
callsI2s_write
calls return nearly immediately. For example, about 1000 ms of 16-bit 11 kHz mono data is accepted byis2_write
in about 50 ms. This suggests that the audio data is not being correctly queued by the driver. When it works correctly, thei2s_write
calls are roughly evenly spaced across the one second interval.The implementation used is in the Moddable SDK audio output module.
Code to reproduce this issue
Summary of implementation:
Other information
We first became aware of this issue when reported against the Moddable SDK (#881). There is a report (#6470) of ADC output being broken in ESP-IDF v4.1, but this is not the issue we have (our code works with ESP-IDF v4.3). That report has a comment which mentions ADC audio is broken on ESP-IDF v4.4 also.
The text was updated successfully, but these errors were encountered: