Wohlstand / OPL3BankEditor

A small cross-platform editor of the OPL3 FM banks of different formats (Downloads in README below)
GNU General Public License v3.0
141 stars 12 forks source link

Incompatible with system-installed RtAudio 6.x #208

Open OPNA2608 opened 4 months ago

OPNA2608 commented 4 months ago

Same issue with OPN2BankEditor.

-- 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.

An example for how this was addressed in BambooTracker, via a hard switch to RtAudio 6.x: https://github.com/BambooTracker/BambooTracker/commit/cac47862a4d77d62d5d6fc488946b2e312c8f5af.

Wohlstand commented 4 months ago

Try the latest version from the git, I already switched some, or wait, that's I did with AdlRt, I'll try to check some soon.