gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit fb117441a8685048d5bb5718ebd2f9f12ae2d7db
parent 39b80ba85222f0d3ded2df8ba9a062611783f3d7
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 30 Jul 2024 12:28:06 +0200

show error message if rom is not found

Diffstat:
Msource/nord/n2x/n2xJucePlugin/n2xPluginProcessor.cpp | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/source/nord/n2x/n2xJucePlugin/n2xPluginProcessor.cpp b/source/nord/n2x/n2xJucePlugin/n2xPluginProcessor.cpp @@ -10,6 +10,8 @@ #include "n2xLib/n2xdevice.h" +#include "synthLib/deviceException.h" + class Controller; namespace @@ -49,7 +51,10 @@ jucePluginEditorLib::PluginEditorState* AudioPluginAudioProcessor::createEditorS synthLib::Device* AudioPluginAudioProcessor::createDevice() { - return new n2x::Device(); + auto* d = new n2x::Device(); + if(!d->isValid()) + throw synthLib::DeviceException(synthLib::DeviceError::FirmwareMissing, "A firmware rom (512k .bin) is required, but was not found."); + return d; } pluginLib::Controller* AudioPluginAudioProcessor::createController()