add new debug bit definitions and declarations for Waves backend
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Oct 2014 00:16:47 +0000 (20:16 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Oct 2014 01:52:54 +0000 (21:52 -0400)
libs/backends/wavesaudio/debug.cc [new file with mode: 0644]
libs/backends/wavesaudio/debug.h [new file with mode: 0644]
libs/backends/wavesaudio/wscript

diff --git a/libs/backends/wavesaudio/debug.cc b/libs/backends/wavesaudio/debug.cc
new file mode 100644 (file)
index 0000000..0c7e463
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+    Copyright (C) 2010 Paul Davis
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "debug.h"
+
+uint64_t PBD::DEBUG::WavesMIDI = PBD::new_debug_bit ("WavesMIDI");
+uint64_t PBD::DEBUG::WavesAudio = PBD::new_debug_bit ("WavesAudio");
+
diff --git a/libs/backends/wavesaudio/debug.h b/libs/backends/wavesaudio/debug.h
new file mode 100644 (file)
index 0000000..31bea24
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+    Copyright (C) 2014 Paul Davis
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __ardour_waves_backend_debug_h__
+#define __ardour_waves_backend_debug_h__
+
+#include <stdint.h>
+
+#include "pbd/debug.h"
+
+namespace PBD {
+       namespace DEBUG {
+                extern uint64_t WavesMIDI;
+                extern uint64_t WavesAudio;
+       }
+}
+
+#endif /* __ardour_waves_backend_debug_h__ */
+
index c1ff717d1094d2e98de86f2df4455b576a494ddf..28efa2adde081f2ccacd1ec3db9bb2f04681ca23 100644 (file)
@@ -38,6 +38,7 @@ def build(bld):
             obj.framework = 'CoreMIDI'
 
     obj.source = [
+            'debug.cc',
             'waves_audiobackend.cc',
             'waves_audiobackend.latency.cc',
             'waves_audiobackend.midi.cc',