soul-lang / SOUL

The SOUL programming language and API
Other
1.71k stars 95 forks source link

Impossible to resolve external variable #71

Open Jaytheway opened 3 years ago

Jaytheway commented 3 years ago

If a processor has initialization arguments, its external variables can't be resolved.

graph Mockup [[ main ]]
{
    ...
    let processorNode = WavePlayer(2);
    ...
}

processor WavePlayer (int numWaves)
{
    ...
    external soul::audio_samples::Stereo sound_1, sound_2;
    ...
}

The externals hooked up correctly in the manifest file.

"externals": {
    "WavePlayer::sound_1": "sound_1.wav",
    "WavePlayer::sound_2": "sound_2.wav" 
}

This code works fine if I remove initialization arguments (int numWaves) from the processor.