Commit 5eeb0bfd authored by martin hou's avatar martin hou

feat: 增加对ver=6版本的录音时长计算支持

parent c9853aec
...@@ -794,6 +794,10 @@ Jensen.prototype.listFiles = async function () { ...@@ -794,6 +794,10 @@ Jensen.prototype.listFiles = async function () {
{ {
duration = flen / 12; duration = flen / 12;
} }
else if (ver == 6)
{
duration = flen / 16;
}
// "2025Sep24-180808-Call01.hda" // "2025Sep24-180808-Call01.hda"
mode = fname.join('').replace(/^(\w{9})-(\d{6})-(.+?)\d+\.\w+$/gi, '$3').toUpperCase(); mode = fname.join('').replace(/^(\w{9})-(\d{6})-(.+?)\d+\.\w+$/gi, '$3').toUpperCase();
console.log('mode:', fname.join(''), mode); console.log('mode:', fname.join(''), mode);
......
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