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

Better way to call methods for gsp without defining Renderer type == Speaker #82

Open
haku5hu opened this issue May 26, 2021 · 0 comments

Comments

@haku5hu
Copy link
Collaborator

haku5hu commented May 26, 2021

When I call stuff on the granular sample player outside of the setupAudio I get errors unless I put it in if(renderer.type == type.speaker).

Is there a better way to think about this or can this if statement be hidden? It's inconsistent because I don't need to define the type for doing light stuff

Note this is all on the simulator.

@orsjb @gutosantos82

@haku5hu haku5hu changed the title can Better way to call methods for gsp without defining Renderer type == Speaker May 26, 2021
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