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
According to the reference manual of esp32, for I2s, 3 Audio Standards are supported, but I am not sure, how to configure the three standards using the esp-idf. Because in the i2s_types.h, 6 communication formats are defined:
I2S_COMM_FORMAT_I2S=0x01, /*!< I2S communication format I2S*/
I2S_COMM_FORMAT_I2S_MSB=0x02, /*!< I2S format MSB*/
I2S_COMM_FORMAT_I2S_LSB=0x04, /*!< I2S format LSB*/
I2S_COMM_FORMAT_PCM=0x08, /*!< I2S communication format PCM*/
I2S_COMM_FORMAT_PCM_SHORT=0x10, /*!< PCM Short*/
I2S_COMM_FORMAT_PCM_LONG=0x20, /*!< PCM Long*/
} i2s_comm_format_t;
I can not find further information about these enums entries, so I read the code. But I can not understand, what is the difference between these configs:
Hi, @callalilychen
Thank you for reporting this issue. If MSB-aligned communication format is required, it should be configured as "I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB" and we will improve the documentation.
According to the reference manual of esp32, for I2s, 3 Audio Standards are supported, but I am not sure, how to configure the three standards using the esp-idf. Because in the i2s_types.h, 6 communication formats are defined:
esp-idf/components/soc/include/hal/i2s_types.h
Lines 64 to 71 in 0ae960f
I can not find further information about these enums entries, so I read the code. But I can not understand, what is the difference between these configs:
or
To receive/send audio in MSB Alignment Standard, should I configure the communication format like this:
Can somebody explain it? It will be very nice to also improve the documentation for I2S https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/i2s.html#functional-overview
The text was updated successfully, but these errors were encountered: