Git Product home page Git Product logo

Comments (11)

hoch avatar hoch commented on August 19, 2024 4

@brianchirls is correct.

This is because of the recent change in Chrome's Convolver node. We (AudioWG) reverted the spec decision due to the reasonable amount of breakage. Here's the revert CL for Chrome:
https://chromium-review.googlesource.com/c/chromium/src/+/1249275

The revert patch was landed at 71.0.3569.0, so perhaps @drewbitllama needs to make a temporary fix that recreates a convolver node whenever a buffer changes. When 71 hits the stable, we can remove the temporary fix.

from resonance-audio-web-sdk.

hoch avatar hoch commented on August 19, 2024 1

This line:

this._convolver.buffer = buffer;

Can be replaced with the following:

this._predelay.disconnect();
this._convolver.disconnect();
this._convolver = this._context.createConvolver();
this._convolver.buffer = buffer;
this._predelay.connect(this._convolver);
this._convolver.connect(this.output);

FYI I have not tested the code locally. (traveling atm)

from resonance-audio-web-sdk.

brianchirls avatar brianchirls commented on August 19, 2024

This doesn't seem to be an issue until Chrome 69, which is currently in Beta, so you might not see it in the current stable version. The next upgrade is scheduled for early next week, so it will go mainstream in a few days.

from resonance-audio-web-sdk.

arpu avatar arpu commented on August 19, 2024

looks like i hit this problem with latest stable chrome Version 69.0.3497.81 (Offizieller Build) (64-Bit)

core:a-node:error Failure loading node: DOMException: Failed to set the 'buffer' property on 'ConvolverNode': Cannot set buffer to non-null after it has been already been set to a non-null buffer at LateReflections.setDurations (webpack:///./node_modules/resonance-audio/build/resonance-audio.js?:3382:26) at Room.setProperties (webpack:///./node_modules/resonance-audio/build/resonance-audio.js?:3110:13) at ResonanceAudio.setRoomProperties (webpack:///./node_modules/resonance-audio/build/resonance-audio.js?:3898:14) at NewComponent.setUpRoom (webpack:///./src/components/aframe-resonance.js?:131:33) at NewComponent.updateProps (webpack:///./src/components/aframe-resonance.js?:107:10) at NewComponent.init (webpack:///./src/components/aframe-resonance.js?:37:10) at NewComponent.updateProperties (webpack:///./node_modules/aframe/dist/aframe-master.js?:75069:12) at HTMLElement.value (webpack:///./node_modules/aframe/dist/aframe-master.js?:73830:19) at HTMLElement.value (webpack:///./node_modules/aframe/dist/aframe-master.js?:73804:14) at entityLoadCallback (webpack:///./node_modules/aframe/dist/aframe-master.js?:73600:14) aframe-master.js:3068 core:schema:warn Unknown property `map` for component/system `material`.

this breaks my app with the new chrome update

from resonance-audio-web-sdk.

arpu avatar arpu commented on August 19, 2024

here is a online sample https://etiennepinchon.github.io/aframe-resonance/

from resonance-audio-web-sdk.

brianchirls avatar brianchirls commented on August 19, 2024

@arpu I can confirm that I get the same error on my machine (OSX, same Chrome build version) with your link. This version came out of beta and went stable a few days ago, so a plurality if not a majority of Chrome users should be running this version pretty soon.

As a workaround until this gets fixed, I think you may need to recreate your resonance instance whenever the room dimensions change. You can pass the parameters to the constructor.

from resonance-audio-web-sdk.

ianpetrarca avatar ianpetrarca commented on August 19, 2024

@drewbitllama @mgorzel It would be great to get some clarity on this issue. The official Resonance Examples page is completely broken along with about every other website that uses Resonance when viewed on the latest Chrome. Resonance now works better on Firefox which is a bit ironic.

Link to broken examples page:

https://cdn.rawgit.com/resonance-audio/resonance-audio-web-sdk/master/examples/hello-world.html

from resonance-audio-web-sdk.

arpu avatar arpu commented on August 19, 2024

@hoch do you know a workaround for chrome < 71.0.3569.0 ?

from resonance-audio-web-sdk.

arpu avatar arpu commented on August 19, 2024

@hoch thx a lot works!

from resonance-audio-web-sdk.

ianpetrarca avatar ianpetrarca commented on August 19, 2024

@hoch I tested that code on Mac 10.12.16 Chrome Version 70.0.3538.67 and it fixed the Convolver error but it is now no longer outputting late-reflections for me. I am testing on this repo . I simply swapped your fix into the late reflections src.

from resonance-audio-web-sdk.

hoch avatar hoch commented on August 19, 2024

https://github.com/ianpetrarca/resonance-audio-web-sdk/commit/56252b5a238e1de09ce282341cfb1d18fa8abd2e#diff-c87382122ba43153a840014fa7957897R220

Seems like you have a typo there. You can't connect a node to a buffer.

from resonance-audio-web-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.