Commit 28d6685d authored by martin hou's avatar martin hou

fix: 按文档调整音频查询指令

parent e16f1a2a
...@@ -1818,7 +1818,11 @@ Jensen.registerHandler(GET_RECORDING_STATUS, (msg) => { ...@@ -1818,7 +1818,11 @@ Jensen.registerHandler(GET_RECORDING_STATUS, (msg) => {
}); });
Jensen.registerHandler(GET_RECORDING_QUALITY, (msg) => { Jensen.registerHandler(GET_RECORDING_QUALITY, (msg) => {
return { quality: (msg.body[0] & 0xff) == 0x00 ? 'normal' : 'high' }; let quality = 0;
for (let i = 0; i < 4 && i < msg.body.length; i++) {
quality |= (msg.body[i] & 0xff) << ((3 - i) * 8);
}
return { quality: quality == 0x00 ? 'normal' : 'high' };
}); });
Jensen.registerHandler(SET_RECORDING_QUALITY, commonMessageParser); Jensen.registerHandler(SET_RECORDING_QUALITY, commonMessageParser);
......
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