test sound
This commit is contained in:
@@ -478,7 +478,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
|
|||||||
realSound := soundPerfix + sound
|
realSound := soundPerfix + sound
|
||||||
allLen := fmt.Sprintf("%x", (len("fd001a0101")+len(realSound))/2)
|
allLen := fmt.Sprintf("%x", (len("fd001a0101")+len(realSound))/2)
|
||||||
soundLenH, soundLenX := int2h8l8(int64(len(realSound) / 2))
|
soundLenH, soundLenX := int2h8l8(int64(len(realSound) / 2))
|
||||||
result = strings.ReplaceAll(result, byteSignSound, hexSignSound+allLen+"fd"+soundLenH+soundLenX+"0101"+soundPerfix)
|
result = strings.ReplaceAll(result, byteSignSound, hexSignSound+allLen+"fd"+soundLenH+soundLenX+"0101"+fmt.Sprintf("%x", soundPerfix))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user