Page 1 of 1

I2S select audio channel

Posted: Tue May 04, 2021 11:17 am
by MP@L&T

I am using a ESP32 Lyrat dev board with two speakers plugged into the left and right channel outputs and have got audio examples running. I am now using the play_sdcard_mp3_control_example project to try and select only one channel.

In the program after the line
i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();

I have tried adding the line
i2s_cfg.i2s_config.channel_format = I2S_CHANNEL_FMT_ALL_LEFT;
i2s_cfg.i2s_config.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT;

but the board is still playing audio out of both channels. Can anyone help me with this, thanks?