question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setRoomProperties throws an error

See original GitHub issue

The error happens in LateReflections.prototype.setDurations.

Per the ConvolverNode spec, you can only set the buffer once. If you try to set it a second time, it throws an InvalidStateError. Firefox ignores this, and it is only recently implemented in Chrome, which is probably why the problem didn’t show up earlier.

I believe you’ll need to create a new ConvolverNode when you want to change the buffer.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

4reactions
hochcommented, Oct 14, 2018

@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.

1reaction
hochcommented, Oct 31, 2018

This line: https://github.com/resonance-audio/resonance-audio-web-sdk/blob/c69e41dae836aea5b41cf4e9e51efcd96e5d0bb6/src/late-reflections.js#L212

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Photon Secret Key is visible in Error Log?
Type == Create is different from the value, I throw an error. After that, I save a new roomname for the next create...
Read more >
createGame throw NullPointerException - smartfoxserver.com
Hi! When i try to create Game room from extension with following settings, SmartFoxServer.getInstance().getAPIManager().getGameApi().createGame ...
Read more >
vrmockupmri - Assets - Plugins - PhotonLoadbalancingApi ...
<summary>No error was tracked.</summary>. 122. None,. 123. /// <summary>OnStatusChanged: The CCUs count of your Photon Server License is ...
Read more >
Randomly Photon stops working and throws photon view ID ...
I am getting an error and 2 warnings that are causing, I will attach those, please let me know if you need any...
Read more >
Example usage for org.jdom2 Element getChild - Java2s.com
private void MergeACE() throws FileNotFoundException, JDOMException, ... Probably just AC error, everything should be working properly.", exception); } } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found