Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to resolve external variable #71

Open
Jaytheway opened this issue Aug 3, 2021 · 0 comments
Open

Impossible to resolve external variable #71

Jaytheway opened this issue Aug 3, 2021 · 0 comments

Comments

@Jaytheway
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant