commit 14c3cb7fd75d0ec3ae3a50f0a3ff231dff90793e parent fb117441a8685048d5bb5718ebd2f9f12ae2d7db Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:29:11 +0200 check if device is valid after creation Diffstat:
M | source/jucePluginLib/processor.cpp | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginLib/processor.cpp b/source/jucePluginLib/processor.cpp @@ -130,6 +130,8 @@ namespace pluginLib try { m_device.reset(createDevice()); + if(!m_device->isValid()) + throw synthLib::DeviceException(synthLib::DeviceError::Unknown, "Device initialization failed"); } catch(const synthLib::DeviceException& e) {