-- Checking for module 'rtaudio'
-- Found rtaudio, version 6.0.1
[...]
In file included from /build/source/src/bank_editor.h:30,
from /build/source/src/audio.cpp:19:
/build/source/src/audio/ao_rtaudio.h:37:31: error: 'RtAudioError' has not been declared
37 | static void errorCallback(RtAudioError::Type type, const std::string &errorText);
| ^~~~~~~~~~~~
/build/source/src/audio/ao_rtaudio.h:37:50: error: expected ',' or '...' before 'type'
37 | static void errorCallback(RtAudioError::Type type, const std::string &errorText);
| ^~~~
With version 6.0.0, RtAudio switched its error reporting method from C++ exceptions to return values.
Same issue with OPN2BankEditor.
With version 6.0.0, RtAudio switched its error reporting method from C++ exceptions to return values.
An example for how this was addressed in BambooTracker, via a hard switch to RtAudio 6.x: https://github.com/BambooTracker/BambooTracker/commit/cac47862a4d77d62d5d6fc488946b2e312c8f5af.