test sound

This commit is contained in:
suyl
2021-07-09 15:20:09 +08:00
parent b0e8104334
commit e392777487

View File

@@ -482,7 +482,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
if len(allLen) < 2 {
allLen = "0" + allLen
}
soundLenH, soundLenX := int2h8l8(int64(len(realSound) + len("0101")/2))
soundLenH, soundLenX := int2h8l8(int64((len(realSound) + len("0101")) / 2))
result = strings.ReplaceAll(result, byteSignSound, hexSignSound+allLen+"fd"+soundLenH+soundLenX+"0101"+hexPrefixStr)
}
}