Update App version to 0.0.2

This commit is contained in:
luckfox-eng29
2025-09-16 11:03:46 +08:00
parent 8fbd6bcf0d
commit 15d276652c
45 changed files with 3347 additions and 252 deletions

View File

@@ -99,7 +99,10 @@ func StartNtpAudioServer(handleClient func(net.Conn)) {
}
func StopNtpAudioServer() {
CallAudioCtrlAction("set_audio_enable", map[string]interface{}{"audio_enable": false})
_, err := CallAudioCtrlAction("set_audio_enable", map[string]interface{}{"audio_enable": false})
if err != nil {
audioLogger.Error().Err(err).Msg("failed to set audio enable")
}
if audioListener != nil {
audioListener.Close()
@@ -138,7 +141,7 @@ func handleAudioClient(conn net.Conn) {
}
timestamp += timestampStep
packet.Header.Timestamp = timestamp
packet.Timestamp = timestamp
buf, err := packet.Marshal()
if err != nil {
audioLogger.Warn().Err(err).Msg("error marshalling packet")