I2S select audio channel

Posts: 5
Joined: Wed Feb 17, 2021 11:34 am

I2S select audio channel

Postby MP@L&T » Tue May 04, 2021 11:17 am


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?

Who is online

Users browsing this forum: No registered users and 6 guests