summaryrefslogtreecommitdiff
path: root/libs/ardour/session_vst.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-03-12 21:56:00 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-03-12 23:04:14 +1000
commita9c449c4af7f735cf38591ea0387fa1724ae5bb7 (patch)
tree25f70daef63d08167d2ddeedb412df1312059af8 /libs/ardour/session_vst.cc
parent5476b48539089cae59facc4df27cd1267c0e4be9 (diff)
Use DEBUG_THREAD_SELF macro in session_vst.cc
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r--libs/ardour/session_vst.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc
index dfd9b29531..4904edc65a 100644
--- a/libs/ardour/session_vst.cc
+++ b/libs/ardour/session_vst.cc
@@ -22,6 +22,8 @@
#endif
#include <cstdio>
+#include "pbd/debug.h"
+
#include "ardour/audioengine.h"
#include "ardour/session.h"
#include "ardour/tempo.h"
@@ -79,19 +81,11 @@ intptr_t Session::vst_callback (
if (effect && effect->user) {
plug = (VSTPlugin *) (effect->user);
session = &plug->session();
-#ifdef PLATFORM_WINDOWS
- SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", pthread_self().p, opcode, plug->name());
-#else
- SHOW_CALLBACK ("am callback 0x%x, opcode = %d, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name());
-#endif
+ SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", DEBUG_THREAD_SELF, opcode, plug->name());
} else {
plug = 0;
session = 0;
-#ifdef PLATFORM_WINDOWS
- SHOW_CALLBACK ("am callback 0x%p, opcode = %d", pthread_self().p, opcode);
-#else
- SHOW_CALLBACK ("am callback 0x%x, opcode = %d", (int) pthread_self(), opcode);
-#endif
+ SHOW_CALLBACK ("am callback 0x%p, opcode = %d", DEBUG_THREAD_SELF, opcode);
}
switch(opcode){