-
Notifications
You must be signed in to change notification settings - Fork 295
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
switch from non positional to positional in networked-audio-source #245
Comments
Hubs has their version of |
This is a good first issue if anyone want to fix it and write an example (maybe update the basic-audio.html example) to switch between non positional and positional. |
Do you know if the hubs example actually works properly when non-positional? I had a client pay me to update their hubs fork to have a 'positional audio off' mode on short notice. I wasn't familiar with hubs, and they had already had their developers make an attempt at it that was incomplete, so I wasn't sure what was originally in the hubs code vs. what they had added. If this feature already exists in the hubs code and works, though, it's strange that they paid me to implement a version of it. I'll have to look into that more. In any case, I'm pretty comfortable with this task one way or the other and can look into it. |
I know that in Hubs you can type "/audiomode" command in the chat bar to disable positional audio or enabled it again. |
If I use for example in my template
networked-audio-source="positional:false"
and later want to switch to positional audio withsetAttribute('networked-audio-source', 'positional:true;rolloffFactor:2.0;distanceModel:exponential')
I get an error.I did get around it with this code in my app but this is quite ugly, this needs to be properly handled by the networked-audio-source update function.
This should really be:
The text was updated successfully, but these errors were encountered: