Skip to content

Commit

Permalink
Fixing copyright year in vst2 files and make producer_vst2 control va…
Browse files Browse the repository at this point in the history
…lue work
  • Loading branch information
mr.fantastic committed Aug 10, 2024
1 parent 652335c commit 53a62dd
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/modules/jackrack/factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ static mlt_properties vst2_metadata(mlt_service_type type, const char *id, char
}
mlt_properties result = mlt_properties_parse_yaml(file);

#ifdef GPL
if (!strncmp(id, "vst2.", 5)) {
// Annotate the yaml properties with ladspa control port info.
vst2_plugin_desc_t *desc = vst2_mgr_get_any_desc(g_vst2_plugin_mgr,
Expand Down Expand Up @@ -618,7 +617,6 @@ static mlt_properties vst2_metadata(mlt_service_type type, const char *id, char
}
}
}
#endif

return result;
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/jackrack/filter_vst2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* filter_ladspa.c -- filter audio through LADSPA plugins
* Copyright (C) 2004-2018 Meltytech, LLC
* filter_vst2.c -- filter audio through VST2 plugins
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
1 change: 1 addition & 0 deletions src/modules/jackrack/plugin_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <stdio.h>
#include <float.h>
#include <math.h>
#include <string.h>
Expand Down
21 changes: 16 additions & 5 deletions src/modules/jackrack/producer_vst2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* producer_ladspa.c -- LADSPA plugin producer
* Copyright (C) 2013-2014 Meltytech, LLC
* producer_vst2.c -- VST2 plugin producer
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down Expand Up @@ -35,7 +35,7 @@
/** One-time initialization of jack rack.
*/

static vst2_context_t *initialise_jack_rack(mlt_properties properties, int channels)
static vst2_context_t *initialise_vst2_context(mlt_properties properties, int channels)
{
vst2_context_t *vst2context = NULL;
unsigned long plugin_id = mlt_properties_get_int64(properties, "_pluginid");
Expand Down Expand Up @@ -88,7 +88,7 @@ static int producer_get_audio(mlt_frame frame,
vst2_context_t *vst2context = mlt_properties_get_data(producer_properties, "_vst2context", NULL);
if (!vst2context) {
vst2_sample_rate = *frequency; // global inside jack_rack
vst2context = initialise_jack_rack(producer_properties, *channels);
vst2context = initialise_vst2_context(producer_properties, *channels);
}

if (vst2context) {
Expand Down Expand Up @@ -116,7 +116,18 @@ static int producer_get_audio(mlt_frame frame,
position,
length);
for (c = 0; c < plugin->copies; c++)
plugin->holders[c].control_memory[index] = value;
{
if (plugin->holders[c].control_memory[index] != value)
{
plugin->holders[c].control_memory[index] = value;
plugin->holders[c].effect
->setParameter (plugin->holders[c].effect,
plugin->desc->control_port_indicies[index]
-
(plugin->holders[c].effect->numInputs+plugin->holders[c].effect->numOutputs),
plugin->holders[c].control_memory[index]);
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2014 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2021 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2021 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_plugin_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2014 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_plugin_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2014 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2021 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jackrack/vst2_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) Robert Ham 2002, 2003 ([email protected])
*
* Modification for MLT:
* Copyright (C) 2004-2021 Meltytech, LLC
* Copyright (C) 2024 Meltytech, LLC
*
* 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
Expand Down

0 comments on commit 53a62dd

Please sign in to comment.