try catch for audio capture failure
This commit is contained in:
parent
4804c2bbf4
commit
9fd614d8cd
1 changed files with 2 additions and 1 deletions
|
@ -426,8 +426,9 @@ const CiderAudio = {
|
|||
let dataLength = audioRawData[0]?.length ?? 0;
|
||||
for (let idx=0; idx<dataLength; idx++) {
|
||||
for (let channel=0; channel < numberOfChannels; channel++) {
|
||||
try {
|
||||
let value = audioRawData[channel][idx];
|
||||
this._buffers[channel][this._bytesWritten] = value;
|
||||
this._buffers[channel][this._bytesWritten] = value;} catch(e){}
|
||||
}
|
||||
this._bytesWritten += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue