xiangyuecn/Recorder

Cannot read properties of undefined (reading 'input')

wake-me-up opened this issue · 1 comments

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

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