mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +00:00
Constant nodes now use '$' as first char.
'#' is being treated as a comment by g_shell_parse_argv
This commit is contained in:
parent
e7ab4f3b8d
commit
30dc8f399a
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue