void AttachmentPoint::reset_status()
{
- if(!(void *)this) printf("AttachmentPoint::reset_status NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::reset_status NULL\n");
start_position = 0;
len = 0;
sample_rate = 0;
int AttachmentPoint::render_init()
{
- if(!(void *)this) printf("AttachmentPoint::render_init NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_init NULL\n");
if(plugin_server && plugin->on)
{
// Start new plugin servers if the number of nodes changed.
int AttachmentPoint::attach_virtual_plugin(VirtualNode *virtual_plugin)
{
- if(!(void *)this) printf("AttachmentPoint::attach_virtual_plugin NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::attach_virtual_plugin NULL\n");
int buffer_number = 0;
if(plugin_server && plugin->on)
int AttachmentPoint::multichannel_shared(int search_new)
{
- if(!(void *)this) printf("AttachmentPoint::multichannel_shared NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::multichannel_shared NULL\n");
if(search_new)
{
if(new_virtual_plugins.total &&
int AttachmentPoint::singlechannel()
{
- if(!(void *)this) printf("AttachmentPoint::singlechannel NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::singlechannel NULL\n");
if(plugin_server && !plugin_server->multichannel) return 1;
return 0;
}
void AttachmentPoint::render_gui(void *data, PluginServer *server)
{
//printf("AttachmentPoint::render_gui 1 %p %p\n", server, plugin_servers.get(0));
- if(!(void *)this) printf("AttachmentPoint::render_gui 1 NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_gui 1 NULL\n");
// Discard if not 1st plugin server, so single channel plugins don't get double GUI updates
if(server != plugin_servers.get(0)) return;
void AttachmentPoint::render_gui(void *data, int size, PluginServer *server)
{
- if(!(void *)this) printf("AttachmentPoint::render_gui 2 NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_gui 2 NULL\n");
// Discard if not 1st plugin server, so single channel plugins don't get double GUI updates
if(server != plugin_servers.get(0)) return;
int AttachmentPoint::dump(FILE *fp)
{
- if((void *)this)
+ void *This = this;
+ if(This)
{
fprintf(fp," Attachmentpoint this=%p virtual_plugins=%d\n", this, new_virtual_plugins.total);
if(plugin_server) plugin_server->dump(fp);