resonance-audio / resonance-audio-web-sdk

Resonance Audio SDK for Web
https://resonance-audio.github.io/resonance-audio/
Apache License 2.0
200 stars 56 forks source link

Not working on Chrome #20

Closed patrickhartono closed 5 years ago

patrickhartono commented 5 years ago

Hi, I tried to run the example fine on Google and it's not working, no sound at all.

Does anyone experience the same problem?

b2renger commented 5 years ago

@patrickhartono, yes I do as well, but it woks on Firefox right ?

it's probably related to this issue : https://github.com/resonance-audio/resonance-audio-web-sdk/issues/16

hoch commented 5 years ago

I suspect this might #16, but just to be sure - do you see anything in the console?

patrickhartono commented 5 years ago

Hi, Guys @b2renger @hoch Yes I #16 problem.

Here what I found in the console:

app.js:2 The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu

Hopes they could fixed it before December LOL

Thanks Guys!

b2renger commented 5 years ago

@hoch Running locally with a server on my tests pages I get this error

resonance-audio.min.js:121 Uncaught 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 i.setDurations (https://cdn.jsdelivr.net/npm/resonance-audio/build/resonance-audio.min.js:121:1062)
    at a.setProperties (https://cdn.jsdelivr.net/npm/resonance-audio/build/resonance-audio.min.js:106:116)
    at i.setRoomProperties (https://cdn.jsdelivr.net/npm/resonance-audio/build/resonance-audio.min.js:166:294)
    at setup (http://127.0.0.1:63230/week99_spatial_audio_test/sketch.js:56:25)
    at e.<anonymous> (https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js:7:17527)
    at e.<anonymous> (https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js:7:16514)
    at new e (https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js:7:19898)
    at e (https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js:7:28199)
hoch commented 5 years ago

@patrickhartono What you found is not the root cause of the problem. It's just a warning that the autoplay policy will change in Chrome 71.

@b2renger Thanks for the confirmation. This issue is a duplicate of #16, so I am closing. Please follow the linked issue for the updates.