Search found 13 matches

by mooalot
Thu Aug 27, 2020 1:22 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Whoops, I must've forgot to change numBytesShifted = 1 in my fix! Now that I think about it, I dont think setting the format to MSB does anything because its only 8 bits. You're right about the volume change as well, 8 bits doesn't allow for much change using log base 2. Im sure there are other ways...
by mooalot
Fri Aug 14, 2020 1:49 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Hi Steven, I'm sorry! I didn't read the portion about the internal dac, my bad. So when you configure your I2S just as the espressif website says: static const i2s_config_t i2s_config = { .mode = I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN, .sample_rate = 44100, .bits_per_sample = 16, /* t...
by mooalot
Sun Jul 26, 2020 6:43 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Hey Steven, So here is the code I use to change the volume. Its in its own file for utilities, but you can put it wherever you want. //the following code changes the volume uint8_t *volume_control_changeVolume(uint8_t *data, uint8_t *outputData, size_t size, uint8_t volume) { const int numBytesShift...
by mooalot
Sun May 31, 2020 8:37 pm
Forum: ESP-IDF
Topic: Esp32 and ili3941 touch screen.
Replies: 0
Views: 2025

Esp32 and ili3941 touch screen.

Hey everyone, I have been working with the ili3941 display. I have a pretty fair understanding of how to use the spi master example to draw shapes, however, I want to try to get the touch features to work. I am trying to use the esp32 idf to do this, but I cant find any examples on how to use a touc...
by mooalot
Tue May 12, 2020 7:08 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Nevermind! I fixed the problem! Volume control works now. The PCM data is received as most significant bit first and least significant byte first for each channel.
by mooalot
Mon May 11, 2020 10:33 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Hey Jakobsen! Thanks for the response! I may have asked the incorrect question. When the callback function bt_app_a2d_data_cb() is called, it reads PCM formatted data from static memory. That data is then sent to a ring buffer. To modify the volume of this stream, I am uncertain what to do. I have t...
by mooalot
Sat May 09, 2020 11:59 pm
Forum: ESP-ADF
Topic: Can one esp32 send audio data to another esp32 via I2s? Help appreciated
Replies: 4
Views: 6403

Re: Can one esp32 send audio data to another esp32 via I2s? Help appreciated

I am just trying to see if I can understand I2s better by sending the data from one esp32 to another. There is one thing I am confused about. The function i2s_read(i2s_port_t i2s_num, void *dest, size_t size, size_t *bytes_read, TickType_t ticks_to_wait) is confusing. What does the term "size_t size...
by mooalot
Thu May 07, 2020 4:40 pm
Forum: ESP-ADF
Topic: Can one esp32 send audio data to another esp32 via I2s? Help appreciated
Replies: 4
Views: 6403

Re: Can one esp32 send audio data to another esp32 via I2s? Help appreciated

Okay, so I allocated some memory to the data and that seemed to fix many of the bugs! Thank you!

If I cannot know the size of the data, that probably means i2s_read() is not an option for this. Is there another efficient way to transfer the audio data from one esp32 to the other via pins?

Thanks!
by mooalot
Thu May 07, 2020 4:22 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

Re: A2dp sink volume control?

Hello ESP_Vikram,

I am just using the Esp32 with the esp-WROOM32.

I would just change the dac output volume, but I am using an external 16 bit I2s decoder to get better quality.

Is there any way to change the volume with I2s that I am unaware of?

Thanks!
by mooalot
Wed May 06, 2020 9:01 pm
Forum: ESP-ADF
Topic: A2dp sink volume control?
Replies: 11
Views: 26709

A2dp sink volume control?

Hey everyone! I have been working on getting the volume control to work. The example code only gets and sets the local variable volume but does not actually change the output volume when played on a speaker. Does anybody know how to successfully change the volume?? Because the I2S is using PCM in th...