CelliesProjects / ESP32_VS1053_Stream

A streaming library for Arduino esp32 with a vs1053 mp3/aac/ogg/flac decoder. Plays http, https (insecure mode) and chunked streams and parses the metadata. Also plays ogg and mp3 from sdcard.
MIT License
37 stars 9 forks source link

'class VS1053' has no member named 'getChipVersion' #23

Closed dieseltravis closed 6 months ago

dieseltravis commented 6 months ago

I get an error when compiling in Arduino 1.8.19:

D:\Arduino\libraries\ESP32_VS1053_Stream\src\ESP32_VS1053_Stream.cpp: In member function 'bool ESP32_VS1053_Stream::startDecoder(uint8_t, uint8_t, uint8_t)':
D:\Arduino\libraries\ESP32_VS1053_Stream\src\ESP32_VS1053_Stream.cpp:153:18: error: 'class VS1053' has no member named 'getChipVersion'
     if (_vs1053->getChipVersion() == 4)
                  ^~~~~~~~~~~~~~

I installed latest version of VS1053 (1.1.4) is there an earlier version that should be used? I can see it in the source: https://github.com/baldram/ESP_VS1053_Library/blob/824f82cff459bba2b3184b29bc21f7547bc6c516/src/VS1053.cpp#L378C23-L378C23

CelliesProjects commented 6 months ago

@dieseltravis You are right. Get chip version was only added in https://github.com/baldram/ESP_VS1053_Library/commit/ba1803f75722a36f3e9f539129e885bea3c60f71 after the 1.1.4 release

See https://github.com/baldram/ESP_VS1053_Library/compare/1.1.4...master

Pull the master branch, recompile and it will probably work.

dieseltravis commented 6 months ago

@CelliesProjects that fixed it, thanks!