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

TypeError · undefined is not a functio #98

Open
plusbpm opened this issue Apr 22, 2019 · 2 comments
Open

TypeError · undefined is not a functio #98

plusbpm opened this issue Apr 22, 2019 · 2 comments
Assignees

Comments

@plusbpm
Copy link

plusbpm commented Apr 22, 2019

I get errors from client browsers chrome and samsung internet:

TypeError undefined is not a function 
    node_modules/ion-sound/js/ion.sound.js:321 Object.h.decode
    node_modules/ion-sound/js/ion.sound.js:313 Object.h.ready

How can I fix this?

@diegocr
Copy link

diegocr commented Dec 27, 2019

So, the issue seems to come from:

audio.decodeAudioData(this.result.response, this.setBuffer.bind(this), this.error.bind(this));

I.e. audio belongs to an AudioContext instance, however audio.decodeAudioData() is not a function... however, according to MDN that should be supported on these browsers you did mention: https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData

@IonDen
Copy link
Owner

IonDen commented Dec 30, 2019

Will be investigated

@IonDen IonDen self-assigned this Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants