MrBuddyCasino / ESP32_MP3_Decoder

A internet radio and bluetooth speaker project for the Espressif ESP32
774 stars 182 forks source link

SW volume control #85

Closed kuzmanzs closed 1 year ago

kuzmanzs commented 1 year ago

Hi,

is it possible to control volume (I mean except ie. MAX98357A gain control pin)?

MrBuddyCasino commented 1 year ago

Not via software. Shouldn’t be hard to implement though.

kuzmanzs commented 1 year ago

Please could you give me some hint? I think it should be put into render_samples method of audio_renderer.c where i2s_write happens or into audio_player's audio_stream_consumer method would be better place or?

MrBuddyCasino commented 1 year ago

That would probably be a good place. Its been quite some time since I've touched this code, so take this with a grain of salt.

kuzmanzs commented 1 year ago

yes, thanks