I’ve just inherited a couple of old applications coded in JUCE and I have spent some time analysing the code. I have two immediate questions and would appreciate any initial guidance.
The above mentioned code is written in JUCE 3.3.1. My first task will be to upgrade to the latest JUCE - what should my expectations be for level of difficulty? Are there any particular issues that I should pay special attention to?
Both of the applications play MP3 files and, looking at the docs and the JUCE code itself, it clearly states that to play any particular format, you must register that format first. However, nowhere in the code is the MP3 format being registered. I can see calls to AudioFormatManager::registerBasicFormats() but that only registers WAV and AIFF. Further, the file juce_audio_formats.h in the JuceLibraryCode has MP3 set to no:
#define JUCE_USE_MP3AUDIOFORMAT 0
So my guess is that there is no setting in the development tool that has enabled MP3.
My immediate concern, then, is whether the code that I am looking at is the same as running in production - or not. Is there any way whereby JUCE can play MP3 format files without a specific call to registerFormat()?