MrBuddyCasino / ESP32_MP3_Decoder

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

Many warnings at compile time (esp-idf 3.0) #53

Open tonyp7 opened 6 years ago

tonyp7 commented 6 years ago

Most notably deprecated functions:

Deprecated functions: C:/msys32/home/tony/esp/ESP32_MP3_Decoder/components/audio_renderer/audio_renderer.c:133:13: warning: 'i2s_write_bytes' is deprecated [-Wdeprecated-declarations] bytes_written = i2s_write_bytes(renderer_instance->i2s_num, buf, bytes_left, 0);

C:/msys32/home/tony/esp/ESP32_MP3_Decoder/components/audio_renderer/audio_renderer.c:182:13: warning: 'i2s_push_sample' is deprecated [-Wdeprecated-declarations] bytes_pushed = i2s_push_sample(renderer_instance->i2s_num, (const char*) &sample, max_wait);

But also a tons of other things: https://pastebin.com/HJuW5efB

MrBuddyCasino commented 6 years ago

Wanna make a pull request?

tonyp7 commented 6 years ago

Sure, let me try my audio amp first (finally soldered it...) and I'll try cleaning up some code and see if we can reduce this warning count!