|
From: Lasse Kärkkäi. <tr...@us...> - 2009-10-28 17:51:06
|
Module: performous
Branch: master
Commit: b3da5bce553e47bc288dbce6bd3b3664cf0f8028
Author: Lasse Karkkainen <tro...@tr...>
Date: Wed Oct 28 19:50:55 2009 +0200
Added debug for OSX testing
---
libs/libda/plugins/audio_dev_jack.cpp | 7 +++++++
libs/plugin++/include/plugin++/loader.hpp | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/libs/libda/plugins/audio_dev_jack.cpp b/libs/libda/plugins/audio_dev_jack.cpp
index aea5a24..e9b25eb 100644
--- a/libs/libda/plugins/audio_dev_jack.cpp
+++ b/libs/libda/plugins/audio_dev_jack.cpp
@@ -2,10 +2,17 @@
#include <boost/lexical_cast.hpp>
#include <jack/jack.h>
#include <algorithm>
+#include <iostream>
namespace {
using namespace da;
+ struct Foo {
+ Foo() {
+ std::cerr << "JACK driver loading..." << std::endl;
+ }
+ } foo;
+
void handle_and_throw(jack_status_t status) {
if (status & JackServerFailed) throw std::runtime_error("Unable to connect to the JACK server");
if (status & JackServerError) throw std::runtime_error("Communication error with the JACK server");
diff --git a/libs/plugin++/include/plugin++/loader.hpp b/libs/plugin++/include/plugin++/loader.hpp
index 89519e6..396da3a 100644
--- a/libs/plugin++/include/plugin++/loader.hpp
+++ b/libs/plugin++/include/plugin++/loader.hpp
@@ -31,7 +31,9 @@ namespace plugin {
void load(fs::path const& path) {
for (fs::directory_iterator it(path), end; it != end; ++it) {
try {
+ std::cerr << "Loading " << it->string() << std::endl;
dlls.push_back(new dll(it->string()));
+ std::cerr << "Loaded." << std::endl;
} catch (std::runtime_error const& e) {
std::cerr << e.what() << std::endl;
} catch (...) {
|