How to output a MONO array to I2S??

cammiboi
Posts: 6
Joined: Tue Feb 20, 2018 6:08 am

How to output a MONO array to I2S??

Postby cammiboi » Mon May 07, 2018 7:07 pm

Hello,

Question about the I2S driver:

I am trying to output a mono audio sample to the built in DAC. I have an array of samples (16 bit with only the upper 8 bits containing the sample).

I am confused what the difference between the following channel formats are. Let's say I use I2S_CHANNEL_FMT_ONLY_LEFT- does this mean the i2s_write_bytes() function expects an array with ONLY samples for the left channel? What is the difference in using I2S_CHANNEL_FMT_ALL_LEFT?
  • I2S_CHANNEL_FMT_ALL_RIGHT
  • I2S_CHANNEL_FMT_ALL_LEFT
  • I2S_CHANNEL_FMT_ONLY_RIGHT
  • I2S_CHANNEL_FMT_ONLY_LEFT

Who is online

Users browsing this forum: No registered users and 107 guests