schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
1.06k stars 281 forks source link

Enhancement to get the codec #771

Closed DrNeuroSurg closed 1 month ago

DrNeuroSurg commented 2 months ago

As we have a callback for bitrate ("*void audio_bitrate(const char info)**") it would be nice to have also a callback for the codec.

e.g. *void audio_codec(const char info)**

I made a small addition to Audio.h extern __attribute__((weak)) void audio_codec(const char*);

and to Audio.cpp in "initializeDecoder" uint32_t gfH = 0; uint32_t hWM = 0; if(audio_codec) { audio_codec(getCodecname()); }

it works and is sometimes useful.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.