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 · 1 comment
Open

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

wake-me-up opened this issue Apr 19, 2024 · 1 comment

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方法

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

2 participants