how to set esp32 i2s to 24bit?

ride_dirt
Posts: 9
Joined: Tue Jun 22, 2021 2:37 pm

how to set esp32 i2s to 24bit?

Postby ride_dirt » Tue Aug 31, 2021 1:09 pm

Hi I'm working on an a2dp project and having trouble setting the i2s bits on the esp32 to 24 bit. The example I am using(pipeline_a2dp_source_stream) has it set to 16 and I cant find where to change it. My codec needs 24 bit

Thank you

ims67-fdc
Posts: 2
Joined: Sat May 15, 2021 3:35 pm

Re: how to set esp32 i2s to 24bit?

Postby ims67-fdc » Thu Oct 28, 2021 4:27 pm

Have you tried to set

Code: Select all

i2s_cfg.i2s_config.bits_per_sample = I2S_BITS_PER_SAMPLE_24BIT;
after calling

Code: Select all

i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
?

You should also check if the I2S input stream format is 24 bit/sample.

Who is online

Users browsing this forum: No registered users and 16 guests