Commit 8ca1b95d authored by martin hou's avatar martin hou

fix: 修正对于录音时长的运算符错误

parent d0e57980
......@@ -1808,7 +1808,7 @@ Jensen.registerHandler(GET_RECORDING_STATUS, (msg) => {
fname += String.fromCharCode(msg.body[idx++] & 0xff);
}
// 录音时长
let duration = ((msg.body[idx++] & 0xff) << 8) || (msg.body[idx++] & 0xff);
let duration = ((msg.body[idx++] & 0xff) << 8) | (msg.body[idx++] & 0xff);
// 声音采样
len = (msg.body[idx++] & 0xff);
let samples = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment