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

Add an example of playing world audio #75

Closed
philpax opened this issue Feb 13, 2023 · 3 comments
Closed

Add an example of playing world audio #75

philpax opened this issue Feb 13, 2023 · 3 comments
Assignees
Labels
topic:api API functionality, including both host and guest topic:examples Pertaining to the examples

Comments

@philpax
Copy link
Contributor

philpax commented Feb 13, 2023

Fairly simple: have a camera looking at a cube, the cube moves around with a looping sound attached to it, you can hear the sound moving with the cube.

Need to add functionality to play a sound from the server, which already exists in the platform and needs to be brought over. Not sure how to control looping / one-shot sounds with that API - would need @ten3roberts to explain.

@philpax philpax added topic:api API functionality, including both host and guest topic:examples Pertaining to the examples labels Feb 13, 2023
@philpax
Copy link
Contributor Author

philpax commented Feb 13, 2023

For now, we'll just add a repeat parameter. Future work will involve #76.

@ten3roberts
Copy link
Contributor

There is an example in dims dims/examples/spatial.rs which is very similar to what is described.

All that is needed is exposing audio graph apis in the wasm client, and moving the example code into a script, as it mostly just spawns things; something the client is more than capable of.

@ten3roberts ten3roberts self-assigned this Feb 13, 2023
@philpax philpax added this to the Initial public release milestone Feb 17, 2023
@philpax philpax assigned philpax and unassigned ten3roberts Feb 17, 2023
@philpax philpax removed this from the Initial public release milestone Feb 20, 2023
@philpax
Copy link
Contributor Author

philpax commented Feb 23, 2023

We released 0.1 without audio support, which gives us time to do #76 properly. I'll close this issue and explain what an example should have there.

@philpax philpax closed this as completed Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:api API functionality, including both host and guest topic:examples Pertaining to the examples
Projects
None yet
Development

No branches or pull requests

2 participants