projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d34bd9e
)
windows: don’t popup message box when libjack is not found
author
Robin Gareus
<robin@gareus.org>
Fri, 17 Oct 2014 08:58:49 +0000
(10:58 +0200)
committer
Robin Gareus
<robin@gareus.org>
Fri, 17 Oct 2014 08:58:49 +0000
(10:58 +0200)
libs/ardour/audioengine.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/audioengine.cc
b/libs/ardour/audioengine.cc
index 731336262293629a4689ee37ff0a2fbf2624fd82..0c8dcc87a9715757ab3638f8460dbaa62fbbc15d 100644
(file)
--- a/
libs/ardour/audioengine.cc
+++ b/
libs/ardour/audioengine.cc
@@
-693,7
+693,15
@@
AudioEngine::discover_backends ()
AudioBackendInfo*
AudioEngine::backend_discover (const string& path)
{
+#ifdef PLATFORM_WINDOWS
+ // do not show popup dialog (e.g. missing libjack.dll)
+ // win7+ should use SetThreadErrorMode()
+ SetErrorMode(SEM_FAILCRITICALERRORS);
+#endif
Glib::Module module (path);
+#ifdef PLATFORM_WINDOWS
+ SetErrorMode(0); // reset to system default
+#endif
AudioBackendInfo* info;
AudioBackendInfo* (*dfunc)(void);
void* func = 0;