Constant nodes now use '$' as first char.

'#' is being treated as a comment by g_shell_parse_argv
This commit is contained in:
Marcus Weseloh 2017-10-04 21:40:15 +02:00
parent e7ab4f3b8d
commit 30dc8f399a
2 changed files with 5 additions and 5 deletions

View file

@ -858,8 +858,8 @@ fluid_LADSPA_CreateNode(fluid_LADSPA_FxUnit_t* FxUnit, char * Name, int flags){
printf( "***Error026***\n"
"The node name %s starts with a digit / minus sign!\n"
"Please use a letter to start a node name.\n"
"A constant node is created by using `#' as first character,\n"
"for example #-2.5.\n",
"A constant node is created by using `$' as first character,\n"
"for example $-2.5.\n",
Name);
fluid_LADSPA_clear(FxUnit);
return NULL;
@ -889,8 +889,8 @@ fluid_LADSPA_CreateNode(fluid_LADSPA_FxUnit_t* FxUnit, char * Name, int flags){
NewNode->OutCount=0;
NewNode->flags=flags;
/* A nodename starting with "#" means that the node holds a constant value. */
if (NewNode->Name[0] == '#'){
/* A nodename starting with "$" means that the node holds a constant value. */
if (NewNode->Name[0] == '$'){
assert(flags & fluid_LADSPA_node_is_control);
/* Skip the first character => +1 */
NewNode->buf[0]=(LADSPA_Data)atof(NewNode->Name+1);

View file

@ -122,7 +122,7 @@ typedef struct {
/* List of Command lines
* During the setup phase, each ladspa_add command creates one command sequence. For example:
* ./aw.so alienwah_stereo Input <- Master_L_Synth Output -> Master_R_Synth Parameter <- #42.0
* ./aw.so alienwah_stereo Input <- Master_L_Synth Output -> Master_R_Synth Parameter <- $42.0
* Those lists are stored in LADSPA_Command_Sequence.
* One command line results in one plugin => size MaxPlugins.
*/