Search found 3 matches

by sdourmashkin
Wed Aug 26, 2020 9:45 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 13
Views: 30143

Re: A2dp sink volume control?

Thanks so much for sharing! You were right, the issue had to do with the fact that the volume data is 8 MSB (instead of 16). Your fix worked, although we also have to change the code to only parse through one byte at a time (numBytesShifted = 1). Here's the volume change function with that fix: //th...
by sdourmashkin
Fri Aug 14, 2020 12:44 am
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 13
Views: 30143

Re: A2dp sink volume control?

Hi mooalot, Thank you for sharing your code - it's very helpful! I implemented your volume control functions but the issue is that I don't hear any audio when I make the I2S setup as: .communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB, When I set it to I2S_COMM_FORMAT_PCM, I can h...
by sdourmashkin
Sat Jul 25, 2020 6:37 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 13
Views: 30143

Re: A2dp sink volume control?

Hi mooalot,

Could you please share your code in write_ringbuf that fixed this? I'm having the same problem not being able to control volume. I'm using the internal DAC with .communication_format = I2S_COMM_FORMAT_PCM in the i2s_config.

Thanks,
Steven