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

Cannot read properties of undefined (reading 'input') #219

Open
wake-me-up opened this issue Apr 19, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'input') #219

wake-me-up opened this issue Apr 19, 2024 · 2 comments

Comments

@wake-me-up
Copy link

this.wave.input(buffers[buffers.length - 1],powerLevel,bufferSampleRate);
控制台提示rec.set.onProcess回调出错是不允许的,需保证不会抛异常 TypeError: Cannot read properties of undefined (reading 'input')

@xiangyuecn
Copy link
Owner

自己判断一下变量是否有值,没值就不要调用input方法

@yangzl96
Copy link

作者请问一下 this.wave 是什么值,哪里来的,是引入波形拓展后,全局注册的吗,看demo不太明白,凭空就来了 this.wave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants