hi there,
I am using esp-adf with esp32 wrover and max98375a (no codec, i2s, class d amplifier).
There is no codec, so there are some problems with the volume control.
When using alc, it seems that the volume is controlled through the i2s_alc_volume_set() function.
Is it the right way to adjust the volume using the i2s_alc_volume_set function?
" esp_err_t i2s_alc_volume_set(audio_element_handle_ti2s_stream, int volume) "
What is the minimum and maximum value of the parameter volume?
Thanks in advance.
i2s volume control
Re: i2s volume control
Hi, I'm having the same question, was wondering if you have this sort out? Thanks!
Re: i2s volume control
I have successfully using i2s_alc_volume_set to set volume with max98375a, it works well!
Just following the pipeline example https://github.com/espressif/esp-adf/tr ... e_http_mp3
and the int volume scale is from -64 (muted) to 64 (super noisy)
Just following the pipeline example https://github.com/espressif/esp-adf/tr ... e_http_mp3
and the int volume scale is from -64 (muted) to 64 (super noisy)
Re: i2s volume control
I'm glad to hear you're using it well.astate wrote: ↑Wed Jul 14, 2021 2:32 pmI have successfully using i2s_alc_volume_set to set volume with max98375a, it works well!
Just following the pipeline example https://github.com/espressif/esp-adf/tr ... e_http_mp3
and the int volume scale is from -64 (muted) to 64 (super noisy)
However, I would like to hear the exact answer from the espressif team.
Who is online
Users browsing this forum: No registered users and 12 guests