mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Use DEBUG_THREAD_SELF macro in session_vst.cc
This commit is contained in:
parent
5476b48539
commit
a9c449c4af
1 changed files with 4 additions and 10 deletions
|
|
@ -22,6 +22,8 @@
|
||||||
#endif
|
#endif
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
#include "pbd/debug.h"
|
||||||
|
|
||||||
#include "ardour/audioengine.h"
|
#include "ardour/audioengine.h"
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
#include "ardour/tempo.h"
|
#include "ardour/tempo.h"
|
||||||
|
|
@ -79,19 +81,11 @@ intptr_t Session::vst_callback (
|
||||||
if (effect && effect->user) {
|
if (effect && effect->user) {
|
||||||
plug = (VSTPlugin *) (effect->user);
|
plug = (VSTPlugin *) (effect->user);
|
||||||
session = &plug->session();
|
session = &plug->session();
|
||||||
#ifdef PLATFORM_WINDOWS
|
SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", DEBUG_THREAD_SELF, opcode, plug->name());
|
||||||
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
|
|
||||||
} else {
|
} else {
|
||||||
plug = 0;
|
plug = 0;
|
||||||
session = 0;
|
session = 0;
|
||||||
#ifdef PLATFORM_WINDOWS
|
SHOW_CALLBACK ("am callback 0x%p, opcode = %d", DEBUG_THREAD_SELF, opcode);
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(opcode){
|
switch(opcode){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue