mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Update App version to 0.0.2
This commit is contained in:
7
audio.go
7
audio.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user